What Wrong With My Models.py
I am using Django 1.4 with PostgreSQL 9.1.4 what wrong with my models.py class UserProfile(models.Model): ROLES_TYPE = ( ('Employee', 'Employee'), ('Employor',
Solution 1:
This is a problem generated by your database not django itself. Try to recreate your database schema (you can just remove all related columns and execute ./manage.py syncdb.
Solution 2:
Try to remove db_column='studentid' from your id column in Student model.
Why are you changing column name?
Also, why are you not using auto-id for it?
Post a Comment for "What Wrong With My Models.py"