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
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.
--~--~---
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
3 matches
Mail list logo