Code

Opened 3 years ago

Closed 3 years ago

#15232 closed (duplicate)

pass parameters to include template tag

Reported by: keropotter Owned by: nobody
Component: Uncategorized Version: 1.2
Severity: Keywords: include parameters
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

I haven't been able to find a way to pass parameters to include template tag... is there any way i can do it?

I have a multi combo selector, and i need to put 2 of them in a web page (origin and destiny). In other languages there is the concept of "component" so you can give it an ID to change the rendering names.

How could i accomplish this in django without braking the DRY principle?

Thanks

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by lrekucki

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

Described feature is implemented in Django 1.3 by ticket #7817. Also see the docs

PS. Trac is not a support forum, so it's not the right place for asking questions like "How could i accomplish ...". For usage questions please use django-users mailing list.

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.