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
RoleModelMixin is calling RoleField() with no arguments. This should be the "required" version and should explicitly call RoleField(null=True, blank=True).
RoleRequiredModelMixin is subclassing RoleModelMixin and instead should just also inherit from models.Model similar to RoleModelMixin, and should not be calling RoleField(null=False, blank=False).
It appears the naming is backward here and the inheritance should not be done in this way.
Environment
Steps to Reproduce
RoleRequiredRoleModelMixin
makemigrations
Expected Behavior
blank=False, null=False
in the migrationObserved Behavior
blank=True, null=True
in the migrationThe text was updated successfully, but these errors were encountered: