hi Rajesh On Thu, Jul 17, 2008 at 6:55 PM, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> > Hi, > > > still, it's not exactly clear to me why the admin does not work the same > as > > other templates. > > The Admin is not a template. So, I don't know what you mean by that. admin is not using templates? well, i did not check the implementation. The whole point is that in your own template, you decide whether you > want to display the count of comments or a list of comments or the > names of the commenters, and so on. How would the Admin know what you > want if you were allowed to put "comments" in the list_display? One > user may want the count, another may want something else. That's why > the Admin supports calling methods in your model class. And through > such methods you are able to display your comments field exactly the > way you want. agree, though it would make sense to me to return the RelatedManager instance, just like in the templates. anyway, problem solved thanks a lot André --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---