add markdown to performances

This commit is contained in:
Sanj 2012-03-08 17:08:41 +05:30
parent a7e4622aae
commit 34573e57ab
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -119,7 +119,7 @@
<div class="performanceLanguage">Language: {{ p.language }}</div>
{% endif %}
{% if p.synopsis %}
<div class="performanceSynopsis">{{ p.synopsis }}</div>
<div class="performanceSynopsis">{{ p.synopsis|markdown }}</div>
{% endif %}
</div>
{% endfor %}