Re: Changing data format in admin

2009-01-18 Thread Kless
I answer myself. It's created a function that returns the desired way, and it's added to the list_display. def id_fixed(self): return "%03d" % self.id On 17 ene, 17:19, Kless wrote: > I would show a numeric field with 3 digits into the admin interface > >    list

Re: Changing data format in admin

2009-01-17 Thread Kless
Since admin interface isn't possible. On 17 ene, 17:19, Kless wrote: > I would show a numeric field with 3 digits into the admin interface > >    list_display = ("%03d" % numeric,) > > But it fails because is required an int argument. > > Any idea to solve it? if there is solution. --~--~---

Changing data format in admin

2009-01-17 Thread Kless
I would show a numeric field with 3 digits into the admin interface list_display = ("%03d" % numeric,) But it fails because is required an int argument. Any idea to solve it? if there is solution. --~--~-~--~~~---~--~~ You received this message because you ar