Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django.db import models
- from django_markdown.fields import MarkdownField
- class MyModel(models.Model):
- text = MarkdownField()
- class MySecondModel(models.Model):
- description = MarkdownField()
- {% load markdown_tags %}
- {{ model.text|markdown }} {{ model2.description|markdown }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement