is.at
Tel.: +43 (1) 534 52 - 1573
Fax: +43 (1) 534 52 - 146
-Ursprüngliche Nachricht-
Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im
Auftrag von Tom Evans
Gesendet: Dienstag, 15. Februar 2011 16:05
An: django-users@googlegroups.com
Betreff: Re: list to t
On Tue, Feb 15, 2011 at 2:36 PM, Szabo, Patrick (LNG-VIE)
wrote:
> According to youre link my synthax was correct:
>
> * Dictionary lookup. Example: foo["bar"]
> * Attribute lookup. Example: foo.bar
> * Method call. Example: foo.bar()
> * List-index lookup. Example: foo[bar]
>
> Anyway
Tom Evans
Gesendet: Dienstag, 15. Februar 2011 15:24
An: django-users@googlegroups.com
Betreff: Re: list to template
On Tue, Feb 15, 2011 at 2:09 PM, Szabo, Patrick (LNG-VIE)
wrote:
> Hi,
>
> Now when i try to acces that lists with
>
> {{ buchung[0][0] }}
>
This isn't par
On Tue, Feb 15, 2011 at 2:09 PM, Szabo, Patrick (LNG-VIE)
wrote:
> Hi,
>
> Now when i try to acces that lists with
>
> {{ buchung[0][0] }}
>
This isn't particularly well documented, best I could find is this:
http://docs.djangoproject.com/en/1.2/ref/templates/api/#rendering-a-context
Templates
Sry a part of my code was wrong i use
{%for buchung in result %}
{{ buchung[0][0] }}
{%endfor%}
To acces the list...
Von: Szabo, Patrick (LNG-VIE)
Gesendet: Dienstag, 15. Februar 2011 15:09
An: 'django-users@googlegroups.com'
Betreff: list to templ
Hi,
What i want to do is show all DB-entries of a certain user.
These entries include foreign keys and i need to get the related objects
too and print them in a template
So what i do is this:
First i get all the objects that i need.
buchungen = Buchung.objects.filter(Mitarbeiter
6 matches
Mail list logo