On 3/5/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > You'd have to define __repr__ on the QuerySet, wouldn't you? Since > that's what is being displayed there (display_teacher() is returning a > QuerySet). Or am I missing something obvious?
The problem is that the __repr__ of the QuerySet uses the __repr__ of the objects it fetches, so defining __repr__ on the model class can also work around this. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---