Suppress errors not working in django templates?

Hi.

I have custom template tag that will concatenate strings but pycharm is give me error "Expected %}" when use it. So I was trying suppress error but pycharm did nothing.

code:

<a href="{% url 'first'|addstr:'second' %}></a>

error is before | and looks like it's only with url code. If I use with as, then I don't have this error but get other about missing quotes in url. And this error cannot be suppressed as well.

To suppress error I was trying to use inspect code but when I chose error and "suppress for file" nothing happen. It's not big problem but very irritating.

1 comment
Comment actions Permalink

Thank you, I can reproduce the issue, and submitted an issue: https://youtrack.jetbrains.com/issue/PY-41294

Please follow the issue to be notified about the updates. If you're unfamiliar with YouTrack, please see https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications

0

Please sign in to leave a comment.