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 /docs | |
| 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 'docs')
| -rw-r--r-- | docs/releases/1.7.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt index d0c3be1688..67dc263a0f 100644 --- a/docs/releases/1.7.txt +++ b/docs/releases/1.7.txt @@ -323,6 +323,13 @@ Miscellaneous when called on an instance without a primary key value. This is done to avoid mutable ``__hash__`` values in containers. +* ``django.contrib.auth.models.AbstractUser`` no longer defines a + :meth:`~django.db.models.Model.get_absolute_url()` method. The old definition + returned ``"/users/%s/" % urlquote(self.username)`` which was arbitrary + since applications may or may not define such a url in ``urlpatterns``. + Define a ``get_absolute_url()`` method on your own custom user object or use + :setting:`ABSOLUTE_URL_OVERRIDES` if you want a URL for your user. + Features deprecated in 1.7 ========================== |
