id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 1115 can't update model in db if PK is not called 'id' Max Naude Adrian Holovaty "I have model class where PK defined as this: id = meta.IntegerField(primary_key=True, db_column='adminID') When trying to save changes via admin interface I got an error: {{{ OperationalError at /admin/protozeuss/adminusers/1/ (1054, ""Unknown column 'id' in 'where clause'"") }}} The SQL is clearly wrong: {{{ 'UPDATE `xxx` SET `userID`=%s,`eMail`=%s,`Line`=%s WHERE `id`=%s' }}}" defect closed Core (Other) 0.90 major fixed ischenko@… Unreviewed 0 0 0 0 0 0