When I try to add a FloatField to list_display in the admin, I get the
following error:

Request Method:         GET
Request URL:    http://www.ebbflowarts.com/admin/store/item/
Exception Type:         TypeError
Exception Value:        float argument required
Exception Location:
        
/home/ebbflowarts/django/django_src/django/contrib/admin/templatetags/admin_list.py
in items_for_result, line 155

My model has a field defined as such:
price               = models.FloatField(max_digits=6,
decimal_places=2)

And under class Admin:
list_display = ('name', 'price', 'sold', 'shipped')

When I remove 'price' from the list_display, everything works.

Am I doing something wrong?


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

Reply via email to