I think you can add a method in the class .when you want to display
the scientific notation on the admin pages ,just call the
instance.method.and that is ok.
2011/8/5 Jeremy Dunck :
> On Tue, Aug 2, 2011 at 12:32 PM, DjangoOfWar wrote:
>> Right now I have
On Tue, Aug 2, 2011 at 12:32 PM, DjangoOfWar wrote:
> Right now I have a Decimal field in my model but I'd like it to
> display as scientific notation on the admin pages.
>
> Do I need to make a custom model field, that uses a custom form field
> or is there an easier way?
>
Right now I have a Decimal field in my model but I'd like it to
display as scientific notation on the admin pages.
Do I need to make a custom model field, that uses a custom form field
or is there an easier way?
(I'm on Django 1.2 if it matters)
--
You received this message because you are
3 matches
Mail list logo