forked from 00dani/lemoncurry
Clean up URL handling for models a li'l
This commit is contained in:
parent
4ac0bcde43
commit
8814e60624
3 changed files with 12 additions and 12 deletions
|
@ -26,6 +26,8 @@ class User(ModelMeta, AbstractUser):
|
|||
# This is gonna need to change if I ever decide to add multiple-user support ;)
|
||||
url = '/'
|
||||
|
||||
def get_absolute_url(self):
|
||||
return self.url
|
||||
|
||||
@property
|
||||
def avatar_url(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue