TrilbyUser gains "acct" property

trilby
Marnanel Thurman 2019-10-12 20:31:07 +01:00
rodzic a93a8cec9b
commit 810cc1bd89
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -49,6 +49,10 @@ class TrilbyUser(AbstractUser):
super().save(*args, **kwargs)
@property
def acct(self):
return self.actor.url
def __getattr__(self, name):
# If people look up an attribute which isn't on