Removed legacy permalink decorator.

This commit is contained in:
Daniel Greenfeld 2015-07-29 20:20:26 -07:00
parent 6e0f6b47e4
commit 09bbc5f853

View File

@ -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})