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 <[email protected]> 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.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---