added supportus view
This commit is contained in:
parent
56776e8894
commit
2102823f8e
17 changed files with 1839 additions and 82 deletions
|
|
@ -46,6 +46,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 = ["digitalglarus"]
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue