Not sure if I’ve done something wrong but if I try to use a custom filter in an included template fragment I’m getting “invalid filter”
If I try the filter on the main template it works fine.
Is this a known limitation/bug?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ll need to
{% load %}in the included template as well.So, if base.html is calling
{% include "sub.html" %}, then you’ll need to have the{% load custom_filters %}tag at the top of sub.html as well.