X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=apps%2Fpatchwork%2Frequestcontext.py;h=c1440dd28ea1df8d6d6b58f0c8e2c16a1445c12f;hb=561041da8c90e923c77bbb64569da473403b59b1;hp=cb9a78290909e7f0d392ab66f392ec491c96d654;hpb=c561ebe710d6e6a43aa4afc6c2036a215378ce87;p=patchwork diff --git a/apps/patchwork/requestcontext.py b/apps/patchwork/requestcontext.py index cb9a782..c1440dd 100644 --- a/apps/patchwork/requestcontext.py +++ b/apps/patchwork/requestcontext.py @@ -19,6 +19,8 @@ from django.template import RequestContext from django.utils.html import escape +from django.contrib.sites.models import Site +from django.conf import settings from patchwork.filters import Filters from patchwork.models import Bundle, Project @@ -65,6 +67,8 @@ class PatchworkRequestContext(RequestContext): self.update({ 'project': self.project, + 'site': Site.objects.get_current(), + 'settings': settings, 'other_projects': len(self.projects) > 1 })