From: yomguy Date: Wed, 18 Apr 2012 10:18:09 +0000 (+0200) Subject: add static template context proc X-Git-Tag: 0.2~10 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=959cf07b09d7b873af1e372e7489ea598e86137c;p=teleforma.git add static template context proc --- diff --git a/example/settings.py b/example/settings.py index 5b56103f..9845b3f9 100644 --- a/example/settings.py +++ b/example/settings.py @@ -152,6 +152,7 @@ TEMPLATE_CONTEXT_PROCESSORS = ( 'postman.context_processors.inbox', "django.core.context_processors.i18n", "django.core.context_processors.media", + 'django.core.context_processors.static', ) TELEMETA_ORGANIZATION = 'Parisson' diff --git a/teleforma/views.py b/teleforma/views.py index bf345bc8..0f570118 100755 --- a/teleforma/views.py +++ b/teleforma/views.py @@ -162,7 +162,7 @@ class UsersView(ListView): def get_queryset(self): return User.objects.all().select_related(depth=1).order_by('last_name') - + def get_context_data(self, **kwargs): context = super(UsersView, self).get_context_data(**kwargs) context['trainings'] = Training.objects.all()