mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
Change is_subscriber and was_subscriber to cached_properties
This commit is contained in:
@ -271,7 +271,7 @@ class ElectionCreateView(CanCreateMixin, CreateView):
|
||||
template_name = 'core/create.jinja'
|
||||
|
||||
def dispatch(self, request, *args, **kwargs):
|
||||
if not request.user.is_subscribed():
|
||||
if not request.user.is_subscribed:
|
||||
raise PermissionDenied
|
||||
return super(ElectionCreateView, self).dispatch(request, *args, **kwargs)
|
||||
|
||||
|
Reference in New Issue
Block a user