Give Users a url property

pull/1/head
Danielle McLean 5 years ago
parent 950459cd5f
commit d267df337f
Signed by: 00dani
GPG Key ID: 5A5D2D1AFF12EEC5
  1. 3
      users/models.py

@ -22,6 +22,9 @@ class Site(models.Model):
class User(ModelMeta, AbstractUser):
avatar = models.ImageField(upload_to=avatar_path)
note = models.TextField(blank=True)
# This is gonna need to change if I ever decide to add multiple-user support ;)
url = '/'
@property
def avatar_url(self):

Loading…
Cancel
Save