Hi Matt,
I don't know about the behaviour of 1to1 fields, but did you just try
it with
class Admin:
pass
like in <http://www.djangoproject.com/documentation/model-api/#admin-
options>?
Then the model should be editable in the admin
Or if you want to change the __str__ (which should afaik be changed to
__unicode__ for the latest dev-version), it should be defined on your
model, not in the Admin-class:
class a(models.Model):
idNumber = models.AutoField(primary_key=True)
def __unicode__(self):
return "id is %d" %self.idNumber
class Admin:
pass
btw, you know that you don't have to create the pk-field yourself?
<http://www.djangoproject.com/documentation/model-api/#automatic-
primary-key-fields>
Andreas
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---