From 959cf07b09d7b873af1e372e7489ea598e86137c Mon Sep 17 00:00:00 2001 From: yomguy Date: Wed, 18 Apr 2012 12:18:09 +0200 Subject: [PATCH] add static template context proc --- example/settings.py | 1 + teleforma/views.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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() -- 2.39.5