Re: Remove autogenerated 'id' when using existing database

2015-04-28 Thread Ben L
It is true that the table doesn't have a primary key. 1, I might be able to talk to the DBA to add a primary key in here and re-sync the class. But is that required for each table to have pk to run Django? 2, what if I just modify the class to have fake pk =True, but not modify the database st

one patch to fix a Django 1.8 issue for merging legacy database

2015-04-28 Thread Ben L
Issue: I have an existing database, so the guide in https://docs.djangoproject.com/en/1.8/howto/legacy-databases/ to inspect db and created models.py . That table does NOT have an 'id' column, and the created models.py doesn't have 'id' either, and the class is unmanaged (managed=False). But w