Re: How do I call a query set from views.py
Thank you...
On Sunday, January 13, 2013 1:29:15 PM UTC-5, frocco wrote:
--in models.pydef get_categories(self):return self.objects.filter('category_class <> "sales' in views.pydata = Category.get_categories()context = Context({'title': 'Search', 'form': form, 'data': data})return render_to_response('index.html', context) this is not working.
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/kNRjIyffZQwJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home