for pull request #23: Removed "You have access to apps" code from welcome widget.

This commit is contained in:
Emanuel Schuetze 2012-10-30 20:18:16 +01:00
parent 51a762b4c6
commit d9fbfeff84
2 changed files with 0 additions and 17 deletions

View File

@ -4,10 +4,3 @@
{% if welcometext %}
<p>{{ welcometext|safe|linebreaks }}</p>
{% endif %}
<p>{% trans "You have access to the following pages:" %}</p>
<ul>
{% for app in apps %}
<li><a href="{{ app.url }}">{{ app.title }}</a></li>
{% endfor %}
</ul>

View File

@ -390,17 +390,7 @@ def get_widgets(request):
widgets = []
# welcome widget
apps = []
for app in settings.INSTALLED_APPS:
try:
mod = import_module(app + '.views')
tab = mod.register_tab(request)
except (ImportError, AttributeError):
continue
if tab.permission:
apps.append(tab)
context = {
'apps': apps,
'welcometext': config['frontpage_welcometext']}
widgets.append(Widget(
name='welcome',