oursky / django-material-demo

0 stars 3 forks source link

Relate user models #38

Closed Rubikium closed 2 years ago

Rubikium commented 2 years ago

connect oursky#24

Steven-Chan commented 2 years ago

And sadly when I try the revert 0010_remove_user_email_remove_user_name_user_account, I run into another error.

image

polls_user.name was not nullable. If you simply remove the column but do not provide a reversible version, it will fail because the default value is null.

Please fix these two migrations.

Rubikium commented 2 years ago

Migration 0010 should now be fixed, but I deleted migration 0011 for now since I haven't found a way to make changing pk fields reversible. This currently only affects the urls for user view/edit/delete pages since the urls correspond to the pk and not the account_id of the user object