Re: AW: __str__, __unicode__ representation of model fields

2008-11-04 Thread Donn
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

AW: __str__, __unicode__ representation of model fields

2008-11-03 Thread Bülent Aldemir
Thanks for your reply. Maybe my question was a bit misleading: where do I put default representations for each model field on model level (not templates). I want to have a nice representation for the other MyModel() fields. Must I define for each field a method to accomplish my task? class