Django-5-By-Example icon indicating copy to clipboard operation
Django-5-By-Example copied to clipboard

Error in chapter one page 23

Open mikemoniker opened this issue 1 year ago • 1 comments

In the section: Creating and applying migrations

I was getting this error when running this command. This is the change that fixed the error.

Command: python manage.py makemigrations blog Error:

SystemCheckError: System check identified some issues:

ERRORS:
blog.Post.status: (fields.E005) 'choices' must be an iterable containing (actual value, human readable name) tuples.

mikemoniker avatar Oct 06 '24 05:10 mikemoniker

@mikemoniker I believe that's only true in Django 4.2 and earlier...

fsbraun avatar Jun 16 '25 16:06 fsbraun