Code

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#7729 closed (invalid)

template tags: IF IN statement like python IF IN statement

Reported by: lav Owned by: nobody
Component: Template system Version: master
Severity: Keywords:
Cc: laandrey@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Is there any ways to check is there an item in the list like in python IF IN statement? as template tag or else....

if item in items_list:

return True

Attachments (0)

Change History (3)

comment:1 Changed 6 years ago by anonymous

  • milestone 1.0 alpha deleted
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Summary changed from template tags: IF IN statement like python to template tags: IF IN statement like python IF IN statement

comment:2 Changed 6 years ago by mtredinnick

  • Resolution set to invalid
  • Status changed from new to closed

Support and usage questions should be directed to the django-users mailing list, please. This Trac installation is only for bug reports.

comment:3 Changed 6 years ago by anonymous

  • Keywords nfa-someday removed

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.