On Monday, 03 November 2008 10:50:34 Bülent Aldemir wrote: > I want to have a nice representation for the other MyModel() fields. Must I > define for each field a method to accomplish my task? Seems the best way. There's only one 'repr' for any object and if you want specific ones then either make a single def that takes an arg (an instance of the field you want to format or a string to match in the def) and then have it spit out a formatted value in response, or have a def per field.
\d --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---