Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. from django.db import models
  2. from django_markdown.fields import MarkdownField
  3.  
  4. class MyModel(models.Model):
  5. text = MarkdownField()
  6.  
  7. class MySecondModel(models.Model):
  8. description = MarkdownField()
  9.  
  10. {% load markdown_tags %}
  11. {{ model.text|markdown }} {{ model2.description|markdown }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement