Merge pull request #1435 from ostcar/fix_assignment_poll_view

Fixed AssignmentPollUpdateView.
This commit is contained in:
Norman Jäckel 2015-01-25 19:04:47 +01:00
commit 79577c9b8e
2 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,8 @@ Core:
Motions: Motions:
- New Feature to create amendments, which are related to a parent motion. - New Feature to create amendments, which are related to a parent motion.
- Added possibility to hide motions from non staff users in some states. - Added possibility to hide motions from non staff users in some states.
Assignments:
- Fix permissions to alter assignment polls.
Other: Other:
- Cleaned up utils.views to increase performance when fetching single objects - Cleaned up utils.views to increase performance when fetching single objects
from the database for a view (#1378). from the database for a view (#1378).

View File

@ -200,6 +200,7 @@ class PollCreateView(SingleObjectMixin, RedirectView):
class PollUpdateView(PollFormView): class PollUpdateView(PollFormView):
required_permission = 'assignment.can_manage_assignment'
poll_class = AssignmentPoll poll_class = AssignmentPoll
template_name = 'assignment/assignmentpoll_form.html' template_name = 'assignment/assignmentpoll_form.html'