Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Commit

Permalink
Fix module display when not logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiphoseer committed Jun 6, 2017
1 parent 020065f commit 34f5e0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions pyBuchaktion/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,13 @@ class ModuleDetailView(StudentRequestMixin, DetailView):

def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
literature = self.object.literature.all()
if self.request.student:
context.update({'literature':
Order.objects.student_annotate_book_queryset(
self.request.student,
self.object.literature,
)
})
literature = Order.objects.student_annotate_book_queryset(
self.request.student,
literature,
).all()
context.update({'literature': literature})
return context


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def run(self):

setup(
name='pyBuchaktion',
version='1.0.2',
version='1.0.3',
packages=find_packages(),
include_package_data=True,
license='AGPL-3.0',
Expand Down

0 comments on commit 34f5e0e

Please sign in to comment.