nubela
nubela

Reputation: 17284

Can I use more than a single filter on a variable in template?

For example:

{{test|linebreaksbr|safe}} 

Upvotes: 1

Views: 118

Answers (2)

Brian R. Bondy
Brian R. Bondy

Reputation: 347206

Yes you can, this is common practice to string together many filters consecutively.

Could you turn debugging on and see what the error is and update the question?

Make sure this is set in your settings.py

DEBUG = True
TEMPLATE_DEBUG = DEBUG

Upvotes: 2

Ned Batchelder
Ned Batchelder

Reputation: 375484

Yes, have you tried it? Did something go wrong?

Upvotes: 2

Related Questions