mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Fixed #26089 -- Removed custom user test models from public API.
Thanks to Tim Graham for the review.
This commit is contained in:
@@ -4,12 +4,11 @@ Django permissions model. This allows us to check that the PermissionsMixin
|
||||
includes everything that is needed to interact with the ModelBackend.
|
||||
"""
|
||||
from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin
|
||||
from django.contrib.auth.tests.custom_user import (
|
||||
CustomUserManager, RemoveGroupsAndPermissions,
|
||||
)
|
||||
from django.db import models
|
||||
from django.utils.encoding import python_2_unicode_compatible
|
||||
|
||||
from .custom_user import CustomUserManager, RemoveGroupsAndPermissions
|
||||
|
||||
|
||||
class CustomPermissionsUserManager(CustomUserManager):
|
||||
def create_superuser(self, email, password, date_of_birth):
|
||||
|
||||
Reference in New Issue
Block a user