Closed GoogleCodeExporter closed 9 years ago
Are you mapping your database table to model by model's meta data.
If yes, then you may didn't specify any model's field as primary_key . In this
case
django adds “ID” as primary key attribute. And that “ID” field is not
available on
your database table. So that you get this error.
So, either specify any model's field as primary key or adds a auto incremental
integer column named 'ID'.
Original comment by rahul.pr...@in.ibm.com
on 20 Apr 2010 at 3:53
Let me know above solution works for you or not.
Original comment by rahul.pr...@in.ibm.com
on 20 Apr 2010 at 4:02
Original comment by rahul.pr...@in.ibm.com
on 29 Apr 2010 at 12:36
Original issue reported on code.google.com by
hse...@gmail.com
on 7 Dec 2009 at 8:58