Opened 8 years ago

Closed 8 years ago

#13058 closed (fixed)

New built-in "smart if" template tag doesn't support "if not in ..." condition

Reported by: ramusus Owned by: Luke Plant
Component: Template system Version: 1.1
Severity: Keywords:
Cc: ramusus@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


One thing is prevent to switch completely from old smart if snippet to new smart if built-in template tag is "if not in ..." condition. This works in snippet, but in built-in template tag doesn't. It's important condition and very strange that this functionality lost while migration of templatetag to trunk.

Change History (3)

comment:1 Changed 8 years ago by ramusus

Cc: ramusus@… added

comment:2 Changed 8 years ago by Luke Plant

Owner: changed from nobody to Luke Plant
Status: newassigned

It was lost because:

  • the parser was rewritten completely
  • in the new parser it is slightly harder to add 'not in' because it involves two tokens
  • I didn't realise the old snippet supported 'not in'

I will commit a fix soon.

comment:3 Changed 8 years ago by Luke Plant

Resolution: fixed
Status: assignedclosed

(In [12732]) Fixed #13058 - "smart if" template tag doesn't support "if not in ..." condition

Thanks to ramusus for the report.

Note: See TracTickets for help on using tickets.
Back to Top