Update after comments: Removed user context var. Removed condition in unupport state check.

This commit is contained in:
Emanuel Schuetze 2013-03-11 16:56:56 +01:00
parent ee0e599a6c
commit 5c70b4a044
3 changed files with 1 additions and 3 deletions

View File

@ -394,7 +394,6 @@ class Motion(SlideMixin, models.Model):
not self.is_supporter(person)), not self.is_supporter(person)),
'unsupport': (self.state.allow_support and 'unsupport': (self.state.allow_support and
config['motion_min_supporters'] > 0 and
not self.is_submitter(person) and not self.is_submitter(person) and
self.is_supporter(person)), self.is_supporter(person)),

View File

@ -75,7 +75,6 @@ class MotionDetailView(GetVersionMixin, DetailView):
context = super(MotionDetailView, self).get_context_data(**kwargs) context = super(MotionDetailView, self).get_context_data(**kwargs)
context['allowed_actions'] = self.object.get_allowed_actions(self.request.user) context['allowed_actions'] = self.object.get_allowed_actions(self.request.user)
context['min_supporters'] = int(config['motion_min_supporters']) context['min_supporters'] = int(config['motion_min_supporters'])
context['user'] = self.request.user
return context return context
motion_detail = MotionDetailView.as_view() motion_detail = MotionDetailView.as_view()