If it's a legacy database, but the tables actually have a field named 'id' 
(which is Django's default primary key), maybe the Django ORM is assuming that 
that's the primary key.

Does a field in your model have primary_key = True set?

http://docs.djangoproject.com/en/dev/topics/db/models/#automatic-primary-key-fields

Perhaps doing that will make it leave your 'id' alone. If this doesn't help, 
please post the model.

Shawn


--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to