diff options
| author | Josh Schneier <josh.schneier@gmail.com> | 2017-04-19 13:02:55 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-05-06 17:05:42 -0400 |
| commit | 5df0ff4155d2ee3192768e8f7f75b546f98c3f77 (patch) | |
| tree | 2c3b09dce5bc2dc1fc674b559915ee057ba1daa0 /tests | |
| parent | e86f4786a7f39b0ed833c0699addf0c27811d864 (diff) | |
Fixed #28089 -- Removed requirement to implement get_short_name() and get_full_name() in AbstractBaseUser subclasses.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/auth_tests/models/custom_permissions.py | 6 | ||||
| -rw-r--r-- | tests/auth_tests/models/custom_user.py | 6 |
2 files changed, 0 insertions, 12 deletions
diff --git a/tests/auth_tests/models/custom_permissions.py b/tests/auth_tests/models/custom_permissions.py index 73c10e5040..bddcfde2eb 100644 --- a/tests/auth_tests/models/custom_permissions.py +++ b/tests/auth_tests/models/custom_permissions.py @@ -27,11 +27,5 @@ with RemoveGroupsAndPermissions(): USERNAME_FIELD = 'email' REQUIRED_FIELDS = ['date_of_birth'] - def get_full_name(self): - return self.email - - def get_short_name(self): - return self.email - def __str__(self): return self.email diff --git a/tests/auth_tests/models/custom_user.py b/tests/auth_tests/models/custom_user.py index 60fcc494c4..ad8b4c1212 100644 --- a/tests/auth_tests/models/custom_user.py +++ b/tests/auth_tests/models/custom_user.py @@ -43,12 +43,6 @@ class CustomUser(AbstractBaseUser): USERNAME_FIELD = 'email' REQUIRED_FIELDS = ['date_of_birth'] - def get_full_name(self): - return self.email - - def get_short_name(self): - return self.email - def __str__(self): return self.email |
