add markdown to performances
This commit is contained in:
parent
a7e4622aae
commit
34573e57ab
|
@ -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
|
||||
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user