CONT: fixed the previous changes.
This commit is contained in:
@@ -148,6 +148,8 @@ class EventDetailView(EventPermissionMixin, generic.DetailView):
|
||||
context['is_submitted'] = obj.workflow.has_reached_status('submitted')
|
||||
context['is_accepted'] = obj.workflow.has_reached_status('accepted')
|
||||
context['is_publishing'] = obj.workflow.has_reached_status('publishing')
|
||||
context['is_publishing_any'] = obj.workflow.has_reached_status('publishing*')
|
||||
context['is_published'] = obj.workflow.has_reached_status('published')
|
||||
return context
|
||||
|
||||
@method_decorator(login_required)
|
||||
@@ -155,7 +157,7 @@ class EventDetailView(EventPermissionMixin, generic.DetailView):
|
||||
return super(EventDetailView, self).dispatch(request, *args, **kwargs)
|
||||
|
||||
|
||||
class EventConfirmStatusView(EventPermissionMixin, generic.DetailView):
|
||||
class EventUpdateStatusView(EventPermissionMixin, generic.DetailView):
|
||||
model = models.Event
|
||||
|
||||
def get(self, request, *args, **kwargs):
|
||||
@@ -217,6 +219,7 @@ class EventUpdateView(EventPermissionMixin, generic.UpdateView):
|
||||
context['has_permission_publish'] = self.has_permission('publish', obj)
|
||||
context['is_expired'] = obj.workflow.has_reached_status('expired')
|
||||
context['is_publishing'] = obj.workflow.has_reached_status('publishing')
|
||||
context['is_publishing_any'] = obj.workflow.has_reached_status('publishing*')
|
||||
context['is_accepted'] = obj.workflow.has_reached_status('accepted')
|
||||
return context
|
||||
|
||||
|
||||
Reference in New Issue
Block a user