mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-11 04:07:48 +03:00
Removed legacy permalink decorator.
This commit is contained in:
parent
6e0f6b47e4
commit
09bbc5f853
|
@ -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 New Issue
Block a user