hi,I have problem about the abstract model in chapter “Adding Easy Admin Emails, Helpers, Sitemaps, and More” (the hello web app intermediate book)
here is my models.py code:
when I run
$python manage.py makemigrations
$ python manage.py migrate
the error message shows:
/helloApp/venv/lib/python2.7/site-packages/django/db/models/base.py:309: RuntimeWarning: Model ‘collection.thing’ was already registered. Reloading models is not advised as it can lead to inconsistencies, most notably with related models.
new_class._meta.apps.register_model(new_class._meta.app_label, new_class)
No changes detected
that does not show like in the book :
You are trying to add a non-nullable field ‘added’ to thing without a defaul,
any answer would very greatful thank you!