So I got this error, and looked at this stackoverflow question: django-registration (1048, "Column 'last_login' cannot be null")
So I went into the database and deleted the row with 0005_alter_user_last_login_null.py.
After I ran: python manage.py migrate it still didn't detect any new migrations.
How am I supposed to fix my database and make the user last_login optional? I thought there might be some way to reapply a previous migration but I couldn't get that to work. Anyone have any ideas on how to fix the database?
Thanks in advance!
EDIT:
Output of python ./manage.py showmigrations auth
[X] 0001_initial
[X] 0002_alter_permission_name_max_length
[X] 0003_alter_user_email_max_length
[X] 0004_alter_user_username_opts
[ ] 0005_alter_user_last_login_null
[X] 0006_require_contenttypes_0002
[X] 0007_alter_validators_add_error_messages