I didn't realize that id was a python builtin function. I have a large pre-existing database that I wrote a bunch of models for.
I used 'id' as the primary key field for all of them. """ class SalesQuoteItemDetail(models.Model): id = models.AutoField(primary_key=True, db_column='ID') ... """ Could that hurt anything to name a field the same as a built-in function? I'm trying to decide if I should change all of my code to something like: pk = models.AutoField(... --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---