mirror of https://github.com/nanoy42/coope
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
194 B
9 lines
194 B
from django.utils.formats import localize_input
|
|
|
|
def do_linebreaks(value):
|
|
return value.replace('\n', '\\\\\n')
|
|
|
|
FILTERS = {
|
|
'localize': localize_input,
|
|
'linebreaks': do_linebreaks
|
|
}
|