def linebreaks_and_paragraphs(value): from django.template.defaultfilters import linebreaks return linebreaks(value)