Hello,

I have a number of views and templates and a list of categories which
i get from my models using:

categories_list = categories.objects.all()

Since i need to display this in multiple (but not all) templates is
there a better way to achieve this than just putting; categories_list
= categories.objects.all() in all my views? And if there is how can i
do it?

Thanks,

Andrew
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to