I have a legacy database that happens to be PostgreSQL. It has this primary key field:
CREATE TABLE foo ( id integer PRIMARY KEY, When I do 'inspectdb' it gives me a model with this in it: class Foo(models.Model): id = models.IntegerField(primary_key=True) But what I really want to end up with, I think, is this: class Foo(models.Model): id = models.AutoField(primary_key=True) Is there any way to get inspectdb to provide this instead of IntegerField? The legacy database is in flux (all 1300+ fields) so just hand editing it every time it changes isn't practical right now. Thanks, Michael --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---