misc: declare agenda attribute
This commit is contained in:
parent
71919eee34
commit
85a64b6a52
|
@ -98,7 +98,7 @@ agenda_import_events_sample_csv = AgendaImportEventsSampleView.as_view()
|
|||
class AgendaImportEventsView(FormView):
|
||||
form_class = ImportEventsForm
|
||||
template_name = 'chrono/manager_import_events.html'
|
||||
error_msg = None
|
||||
agenda = None
|
||||
|
||||
def dispatch(self, request, *args, **kwargs):
|
||||
self.agenda = get_object_or_404(Agenda, id=kwargs.get('pk'))
|
||||
|
|
Loading…
Reference in New Issue