From 7aa37b23e69ec691ae0aa737197abee2799277e6 Mon Sep 17 00:00:00 2001 From: Iacopo Spalletti Date: Sun, 25 Oct 2015 10:09:49 +0100 Subject: [PATCH] Remove custom template --- djangocms_blog/cms_wizards.py | 2 +- .../djangocms_blog/wizards/create.html | 35 ------------------- 2 files changed, 1 insertion(+), 36 deletions(-) delete mode 100644 djangocms_blog/templates/djangocms_blog/wizards/create.html diff --git a/djangocms_blog/cms_wizards.py b/djangocms_blog/cms_wizards.py index 0310dda..5895236 100644 --- a/djangocms_blog/cms_wizards.py +++ b/djangocms_blog/cms_wizards.py @@ -26,7 +26,7 @@ try: fields = ['app_config', 'title', 'abstract', 'categories'] class PostWizard(Wizard): - template_name = 'djangocms_blog/wizards/create.html' + pass for config in BlogConfig.objects.all().order_by('namespace'): new_wizard = type(slugify(config.app_title), (PostWizard,), {}) diff --git a/djangocms_blog/templates/djangocms_blog/wizards/create.html b/djangocms_blog/templates/djangocms_blog/wizards/create.html deleted file mode 100644 index 14e1a6f..0000000 --- a/djangocms_blog/templates/djangocms_blog/wizards/create.html +++ /dev/null @@ -1,35 +0,0 @@ -{% extends "cms/wizards/base.html" %} -{% load i18n static admin_urls %} - -{% block extrastyle %} - - - {{ block.super }} -{% endblock %} - -{% block wizard %} -

{% trans "Create" %} {{ wizard_entry.title }}

- -
- {% csrf_token %} - - {{ wizard.management_form }} - - {% if form.errors %} -

- {% trans "Please correct the error below." %} -

- {% endif %} - -
- {% include "cms/wizards/includes/form_fields.html" %} -
-
- - -
-
-{% endblock %}