Thanks for the reply Melvyn. So by multiple model instances you mean the multiple records that poll app has in it's database?
On Fri, Jul 6, 2012 at 3:22 AM, Melvyn Sopacua <m.r.sopa...@gmail.com>wrote: > 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. > > -- Thanks & Regards Smaran Harihar -- 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.