1👍
✅
There’s nowhere to save is_active
to, since you haven’t assigned a database field to it.
You should change the is_active
in your model to:
is_active = models.BooleanField(default=False)
1👍
In your Account model, change the is_active field definition to:
is_active = models.BooleanField(verbose_name=_("active"), default=False)
- [Answered ]-Django Q&Q versus filter.filter
- [Answered ]-Django to DjangoRestFramework – Where do I do form validation (I am no longer using forms.py – I'm using serializers.py)
- [Answered ]-Google SDK gcloud crashed (UnicodeDecodeError): 'utf8' codec can't decode byte 0xf8 in position 29: invalid start byte
- [Answered ]-TypeError: context must be a dict rather than Context
Source:stackexchange.com