forked from 00dani/lemoncurry
Give Users a url property
This commit is contained in:
parent
950459cd5f
commit
d267df337f
1 changed files with 3 additions and 0 deletions
|
@ -22,6 +22,9 @@ class Site(models.Model):
|
||||||
class User(ModelMeta, AbstractUser):
|
class User(ModelMeta, AbstractUser):
|
||||||
avatar = models.ImageField(upload_to=avatar_path)
|
avatar = models.ImageField(upload_to=avatar_path)
|
||||||
note = models.TextField(blank=True)
|
note = models.TextField(blank=True)
|
||||||
|
# This is gonna need to change if I ever decide to add multiple-user support ;)
|
||||||
|
url = '/'
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def avatar_url(self):
|
def avatar_url(self):
|
||||||
|
|
Loading…
Reference in a new issue