Opened 15 years ago

Closed 15 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: no UI/UX: no

Description

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 by ramusus, 15 years ago

Cc: ramusus@… added

comment:2 by Luke Plant, 15 years ago

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 by Luke Plant, 15 years ago

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