Hello: I have the following model:
class JobType(meta.Model): name = meta.CharField(maxlength=20, verbose_name='Job Type') price = meta.FloatField( max_digits=5, decimal_places=2, verbose_name='Price', help_text='Enter the price in dollars, without the $ sign. Example. 100.00') description = meta.TextField(verbose_name='Job Description') def __repr__(self): return "%s @ $%s" % (self.name,self.price) class META: admin = meta.Admin( list_display=('name','price'), list_filter=('price'), search_fields=('name','price'),) Which works great at the python shell: >>> from django.models.backend import containers, jobtypes >>> jt = jobtypes.JobType(name='Reefer Unit >>> Repair',price=566,description='Repair of reefer unit') >>> jt.save() >>> jobtypes.get_list(); [Reefer Unit Repair @ $566.00] On the admin side though, I get this error: FieldDoesNotExist at /container-project/admin/backend/jobtypes/ name=p Request Method: GET Request URL: http://phoenix.am-ul.com/container-project/admin/backend/jobtypes/ Exception Type: FieldDoesNotExist Exception Value: name=p Exception Location: /usr/lib/python2.4/site-packages/django/core/meta/__init__.py in get_field, line 462 Any idea? I suspect its the 'name' and that this is a reserved name in Django. Is there a list of such things? I have run into this problem before (while naming my app admin).