can_propose only if there are changed objects

This commit is contained in:
Laura Klünder 2017-07-05 21:06:17 +02:00
parent 7973a9e632
commit 1ba2df6116
3 changed files with 3 additions and 2 deletions

View file

@ -318,6 +318,7 @@ def changeset_detail(request, pk):
'changeset': changeset,
'can_edit': can_edit,
'can_delete': can_delete,
'can_propose': changeset.can_propose(request),
'can_unpropose': changeset.can_unpropose(request),
'can_start_review': changeset.can_start_review(request),
'can_end_review': changeset.can_end_review(request),