#4263: Insert select item from a collection into templates
----------------------------------------+-----------------------------------
Reporter: [EMAIL PROTECTED] | Owner: jacob
Status: new | Component: Uncategorized
Version: SVN | Keywords: templates selection for
Stage: Unreviewed | Has_patch: 0
----------------------------------------+-----------------------------------
If I have a set of items I can only cycle them with {% for item in
items.all %}.
But it don't permits to take the item n° 5 and put it into a place, the n°
2 and put in another, and so on.
It's very useful with images related to objects: if you want to make
images float in particular places, a single selection would be sufficient.
Now I can only add to my model a getFirstImage method, but it's a
presentation problem and it's not correct to put it in models or views.
--
Ticket URL: <http://code.djangoproject.com/ticket/4263>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---