I just dropped a column and made a migration, but in the shell I am getting this error:
MyModel.objects.all()
ProgrammingError: It dows not exists the column MyApp_MyModel.id
LINE 1: SELECT “MyApp_MyModel”.“id”, “MyApp_MyModel”…
Thanks!
I just dropped a column and made a migration, but in the shell I am getting this error:
MyModel.objects.all()
ProgrammingError: It dows not exists the column MyApp_MyModel.id
LINE 1: SELECT “MyApp_MyModel”.“id”, “MyApp_MyModel”…
Thanks!
After making the migration, did you do a migrate?
Was the column you dropped either the id column or your primary key?