mirror of
https://github.com/Hopiu/cookiecutter-django.git
synced 2026-05-11 06:03:09 +00:00
Removed legacy permalink decorator.
This commit is contained in:
parent
6e0f6b47e4
commit
09bbc5f853
1 changed files with 0 additions and 1 deletions
|
|
@ -16,6 +16,5 @@ class User(AbstractUser):
|
|||
def __unicode__(self):
|
||||
return self.username
|
||||
|
||||
@models.permalink
|
||||
def get_absolute_url(self):
|
||||
return reverse('users:detail', kwargs={'username': self.username})
|
||||
|
|
|
|||
Loading…
Reference in a new issue