Skip to content

Commit

Permalink
* Fix bug with getting all of the users documents.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgroff committed Nov 8, 2017
1 parent ca1d9f9 commit 4b92bcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_kala/auth/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def get_projects(self):

def get_documents(self):
if self.is_superuser:
return documents.models.Document.all()
return documents.models.Document.objects.all()
else:
projects = self.get_organizations().values_list('project__uuid', flat=True)
document_uuids = documents.models.Document.objects.filter(
Expand Down

0 comments on commit 4b92bcd

Please sign in to comment.