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):
|
class MeetingPerformanceAdmin(admin.ModelAdmin):
|
||||||
inlines = [MeetingPerformanceImageInline]
|
inlines = [MeetingPerformanceImageInline]
|
||||||
|
formfield_overrides = {models.TextField: {'widget': MarkItUpWidget}}
|
||||||
search_fields = ('title', 'synopsis',)
|
search_fields = ('title', 'synopsis',)
|
||||||
save_on_top = True
|
save_on_top = True
|
||||||
|
|
||||||
|
|
|
@ -119,7 +119,7 @@
|
||||||
<div class="performanceLanguage">Language: {{ p.language }}</div>
|
<div class="performanceLanguage">Language: {{ p.language }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if p.synopsis %}
|
{% if p.synopsis %}
|
||||||
<div class="performanceSynopsis">{{ p.synopsis }}</div>
|
<div class="performanceSynopsis">{{ p.synopsis|markdown }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user