From 34573e57ab183b207a16f5f12f6beececcec764c Mon Sep 17 00:00:00 2001 From: Sanj Date: Thu, 8 Mar 2012 17:08:41 +0530 Subject: [PATCH] add markdown to performances --- itf/festival/admin.py | 1 + itf/templates/modules/festival/meeting.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/itf/festival/admin.py b/itf/festival/admin.py index e43fb74..1f93ecb 100755 --- a/itf/festival/admin.py +++ b/itf/festival/admin.py @@ -50,6 +50,7 @@ class MeetingAdmin(admin.ModelAdmin): class MeetingPerformanceAdmin(admin.ModelAdmin): inlines = [MeetingPerformanceImageInline] + formfield_overrides = {models.TextField: {'widget': MarkItUpWidget}} search_fields = ('title', 'synopsis',) save_on_top = True diff --git a/itf/templates/modules/festival/meeting.html b/itf/templates/modules/festival/meeting.html index 6924e99..ff51942 100755 --- a/itf/templates/modules/festival/meeting.html +++ b/itf/templates/modules/festival/meeting.html @@ -119,7 +119,7 @@
Language: {{ p.language }}
{% endif %} {% if p.synopsis %} -
{{ p.synopsis }}
+
{{ p.synopsis|markdown }}
{% endif %} {% endfor %}