Monday, October 29, 2018

Re: Variable within a Variable

sounds like you would be better off with a template tag

On Monday, October 29, 2018 at 1:22:04 PM UTC-4, wrote:

Is it possible to have a variable within a variable...

For example

{{ flights.Legs.0|length}} 

is equal to 1 or 2 or basically a integer. Then i would like to connect this to something like:

{{flights.Legs.0.InboundR.X.ATime}} where in stead of the X, I would like to have the value of {{ flights.Legs.0|length}}.

I tried something like this,


 and it did not work.

Any help will be extremple appreciated. 



You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment