Hi. Assuming I have these models: #models.py class Publisher(models.Model): name = models.CharField(maxlength=30) street = models.CharField(maxlength=30) class Book(models.Model): name = models.CharField(maxlength=30) publisher = models.ForeignKey(Publisher)
What do I have to pass to the detail_info-dict() when I want to create a publisher generic detail_info view template on which I want to display all the books, which are pubished by the publisher, whose details I want to display? For example: Publisher: O'Reilly Street: xyz Books: Pyton, Perl, ... #and the following URL-config #urls.py publisher_detail_info = { 'queryset' : Publisher.objects.all(), "extra_context" : { "books" : ****.book_set.all(), } } (r'publisher/(?P<object_id>\d+)/$', list_detail.object_detail, Publisher_detail_info), Is it possible to pass the correct objects into extra_context (replacing the *****)? Or do I have to write a wrapper around the generic view. Thanks in advace, Regards! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---