mirror of
https://github.com/nanoy42/coope
synced 2024-11-05 01:16:28 +00:00
9 lines
No EOL
194 B
Python
9 lines
No EOL
194 B
Python
from django.utils.formats import localize_input
|
|
|
|
def do_linebreaks(value):
|
|
return value.replace('\n', '\\\\\n')
|
|
|
|
FILTERS = {
|
|
'localize': localize_input,
|
|
'linebreaks': do_linebreaks
|
|
} |