On 6-7-2012 0:35, Smaran Harihar wrote: > Thanks for the reply Luigi, but when should we use queryset and when should > we use model?
A queryset returns a /list/ of model instances. Thus you should queryset when you want more then one instance of the model displayed. >From the above you should also understand that the DetailView wants a model and "something from which it can identify a single instance" - the pk (primary key) in the example. -- Melvyn Sopacua -- 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.