I assume you guys also know python. If so, I wish to get some help
with this implementation:
What I want to return is a new variable each time through the for
loop:

catQuantity = len(categoryList)
for x in catQuantity:
     cat(x) = get_object_or_404(Category, cat_order=x)
     return cat(x)

This would help me so much, as I would otherwise have to do this:

cat1 = get_object_or_404(Category, cat_order=1)
cat2 = get_object_or_404(Category, cat_order=2)
cat3 = get_object_or_404(Category, cat_order=3)
... and so on ...

Glad to receive any help! Thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to