From c11141e74b7df286a0b56eafd626f1053b7e0f1c Mon Sep 17 00:00:00 2001 From: Iacopo Spalletti Date: Wed, 8 Jan 2014 06:46:50 +0100 Subject: [PATCH] Add css to style tags in admin --- djangocms_blog/admin.py | 1 + .../djangocms_blog/post_change_form.html | 29 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 djangocms_blog/templates/admin/djangocms_blog/post_change_form.html diff --git a/djangocms_blog/admin.py b/djangocms_blog/admin.py index e032e24..46d55c6 100755 --- a/djangocms_blog/admin.py +++ b/djangocms_blog/admin.py @@ -18,6 +18,7 @@ class PostAdmin(EnhancedModelAdminMixin, FrontendEditableAdmin, raw_id_fields = ['author'] frontend_editable_fields = ("title", "abstract") enhance_exclude = ('main_image', 'tags') + change_form_template = "admin/djangocms_blog/post_change_form.html" fieldsets = [ (None, { diff --git a/djangocms_blog/templates/admin/djangocms_blog/post_change_form.html b/djangocms_blog/templates/admin/djangocms_blog/post_change_form.html new file mode 100644 index 0000000..6d2da2f --- /dev/null +++ b/djangocms_blog/templates/admin/djangocms_blog/post_change_form.html @@ -0,0 +1,29 @@ +{% extends "admin/hvad/change_form.html" %} +{% load i18n admin_modify %} + +{% block extrahead %} +{{ block.super }} + +{% endblock %} \ No newline at end of file