new cchanges and the other changes

This commit is contained in:
Natacha Quintero 2016-11-27 00:35:15 -04:30
commit 0a63917eac
23 changed files with 2030 additions and 132 deletions

View file

@ -81,6 +81,19 @@ class IndexView(TemplateView):
template_name = "digitalglarus/index.html"
class SupportusView(TemplateView):
template_name = "digitalglarus/supportus.html"
def get_context_data(self, *args, **kwargs):
context = super(SupportusView, self).get_context_data(**kwargs)
tags = ["dg-renovation"]
posts = Post.objects.filter(tags__name__in=tags, publish=True).translated(get_language())
context.update({
'post_list': posts
})
return context
class LoginView(LoginViewMixin):
template_name = "digitalglarus/login.html"
form_class = LoginForm