Skip to content
Browse files

Fix the make_mine action

  • Loading branch information...
1 parent a2bf1b9 commit 6599c56969f869be864671cbeb072f6b232bb1c6 @Fantomas42 committed Jul 16, 2014
Showing with 3 additions and 2 deletions.
  1. +3 −2 zinnia/admin/entry.py
View
5 zinnia/admin/entry.py
@@ -251,9 +251,10 @@ def make_mine(self, request, queryset):
"""
Set the entries to the current user.
"""
+ author = Author.objects.get(pk=request.user.pk)
for entry in queryset:
- if request.user not in entry.authors.all():
- entry.authors.add(request.user)
+ if author not in entry.authors.all():
+ entry.authors.add(author)
self.message_user(
request, _('The selected entries now belong to you.'))
make_mine.short_description = _('Set the entries to the user')

0 comments on commit 6599c56

Please sign in to comment.
Something went wrong with that request. Please try again.