added url_identifier to test ThingUser model

thingy_objects
Marnanel Thurman 2018-08-19 17:47:46 +01:00
rodzic 27098c9bfa
commit 0d8017ac5e
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -14,3 +14,7 @@ class ThingUser(models.Model):
'name': self.name,
}
def url_identifier(self):
return 'https://example.com/user/{}'.format(
self.name,
)