diff options
| author | Tim Graham <timograham@gmail.com> | 2013-08-28 20:03:21 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-08-29 06:36:35 -0400 |
| commit | cf8d6e910839238ee9b2d0a094d98cb8d48dc530 (patch) | |
| tree | c58d063cdb366f2cb641912f04b76a672984177e /django | |
| parent | 8d473b2c54035cbcd3aacef0cb83a9769cd05ad3 (diff) | |
Fixed #20881 -- Removed contrib.auth.models.AbstractUser.get_absolute_url()
The definition is arbitrary and creates a broken "view on site"
link in the admin if a project doesn't define such a URL.
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/auth/models.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/django/contrib/auth/models.py b/django/contrib/auth/models.py index cf1ca8ca1f..309a7a590f 100644 --- a/django/contrib/auth/models.py +++ b/django/contrib/auth/models.py @@ -386,9 +386,6 @@ class AbstractUser(AbstractBaseUser, PermissionsMixin): verbose_name_plural = _('users') abstract = True - def get_absolute_url(self): - return "/users/%s/" % urlquote(self.username) - def get_full_name(self): """ Returns the first_name plus the last_name, with a space in between. |
