|
|
|
@ -45,7 +45,7 @@ class ExportView(FormView): |
|
|
|
|
|
|
|
|
|
|
|
def form_valid(self, form): |
|
|
|
def form_valid(self, form): |
|
|
|
workbook = form.export() |
|
|
|
workbook = form.export() |
|
|
|
if workbook: |
|
|
|
if workbook is not None: |
|
|
|
f_name = form.get_fname() |
|
|
|
f_name = form.get_fname() |
|
|
|
else: |
|
|
|
else: |
|
|
|
messages.error(self.request, _('No objects found')) |
|
|
|
messages.error(self.request, _('No objects found')) |
|
|
|
@ -55,32 +55,32 @@ class ExportView(FormView): |
|
|
|
|
|
|
|
|
|
|
|
class ExportTheme(ExportView): |
|
|
|
class ExportTheme(ExportView): |
|
|
|
form_class = ExportThemeForm |
|
|
|
form_class = ExportThemeForm |
|
|
|
success_url = '/admin/export-theme' |
|
|
|
success_url = '/admin/export-theme/' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ExportTag(ExportView): |
|
|
|
class ExportTag(ExportView): |
|
|
|
form_class = ExportTagForm |
|
|
|
form_class = ExportTagForm |
|
|
|
success_url = '/admin/export-tag' |
|
|
|
success_url = '/admin/export-tag/' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ExportUser(ExportView): |
|
|
|
class ExportUser(ExportView): |
|
|
|
form_class = ExportUserForm |
|
|
|
form_class = ExportUserForm |
|
|
|
success_url = '/admin/export-user' |
|
|
|
success_url = '/admin/export-user/' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ExportCompany(ExportView): |
|
|
|
class ExportCompany(ExportView): |
|
|
|
form_class = ExportCompanyForm |
|
|
|
form_class = ExportCompanyForm |
|
|
|
success_url = '/admin/export-company' |
|
|
|
success_url = '/admin/export-company/' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ExportPlaceConference(ExportView): |
|
|
|
class ExportPlaceConference(ExportView): |
|
|
|
form_class = ExportPlaceConferenceForm |
|
|
|
form_class = ExportPlaceConferenceForm |
|
|
|
success_url = '/admin/export-place_conference' |
|
|
|
success_url = '/admin/export-place_conference/' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ExportPlaceExposition(ExportView): |
|
|
|
class ExportPlaceExposition(ExportView): |
|
|
|
form_class = ExportPlaceExpositionForm |
|
|
|
form_class = ExportPlaceExpositionForm |
|
|
|
success_url = '/admin/export-place_exposition' |
|
|
|
success_url = '/admin/export-place_exposition/' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ExportBlog(ExportView): |
|
|
|
class ExportBlog(ExportView): |
|
|
|
@ -120,7 +120,7 @@ class ImportPlaceExposition(FormView): |
|
|
|
|
|
|
|
|
|
|
|
class ImportPlaceConference(ImportView): |
|
|
|
class ImportPlaceConference(ImportView): |
|
|
|
form_class = ImportPlaceConferenceForm |
|
|
|
form_class = ImportPlaceConferenceForm |
|
|
|
success_url = '/admin/import-place_conference' |
|
|
|
success_url = '/admin/import-place_conference/' |
|
|
|
|
|
|
|
|
|
|
|
def form_valid(self, form): |
|
|
|
def form_valid(self, form): |
|
|
|
errors = form.save_file_debug() |
|
|
|
errors = form.save_file_debug() |
|
|
|
@ -129,12 +129,12 @@ class ImportPlaceConference(ImportView): |
|
|
|
|
|
|
|
|
|
|
|
class ImportTheme(ImportView): |
|
|
|
class ImportTheme(ImportView): |
|
|
|
form_class = ImportThemeForm |
|
|
|
form_class = ImportThemeForm |
|
|
|
success_url = '/admin/import-theme' |
|
|
|
success_url = '/admin/import-theme/' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ImportTag(ImportView): |
|
|
|
class ImportTag(ImportView): |
|
|
|
form_class = ImportTagForm |
|
|
|
form_class = ImportTagForm |
|
|
|
success_url = '/admin/import-tag' |
|
|
|
success_url = '/admin/import-tag/' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -143,7 +143,7 @@ class ImportTag(ImportView): |
|
|
|
class ExportEvent(ExportView): |
|
|
|
class ExportEvent(ExportView): |
|
|
|
form_class = ExportEventForm |
|
|
|
form_class = ExportEventForm |
|
|
|
template_name = 'export_event.html' |
|
|
|
template_name = 'export_event.html' |
|
|
|
success_url = '/admin/export-event' |
|
|
|
success_url = '/admin/export-event/' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class LogList(ListView): |
|
|
|
class LogList(ListView): |
|
|
|
|