You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.
% python manage.py makemigrations
You are trying to add a non-nullable field 'owner' to contact without a default;
we can't do that (the database needs something to populate existing rows).
Please select a fix:
1) Provide a one-off default now (will be set on all existing rows)
2) Quit, and let me add a default in models.py
Select an option:
As reported by Maciej Friedel:
I found solution on problem in Your tutorial.
in section Handling Authentication & Authorization (http://effectivedjango.com/tutorial/authzn.html)
in last contacts/models.py correction there is:
but this is not correct and displaying error
because there is migration problem
the problem resolved this input:
after successful migration there can be
owner = models.ForeignKey(User)
but migration needed this default settingsThe text was updated successfully, but these errors were encountered: