2👍
✅
You’ll need to import Django’s user class.
from django.contrib.auth.models import User
That import line isn’t currently mentioned. I guess it probably should be.
Source:stackexchange.com