From 0d8017ac5e41ff0959d1c1c0f15c97d8c220f959 Mon Sep 17 00:00:00 2001 From: Marnanel Thurman Date: Sun, 19 Aug 2018 17:47:46 +0100 Subject: [PATCH] added url_identifier to test ThingUser model --- things_for_testing/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/things_for_testing/models.py b/things_for_testing/models.py index dfc6317..f4485b4 100644 --- a/things_for_testing/models.py +++ b/things_for_testing/models.py @@ -14,3 +14,7 @@ class ThingUser(models.Model): 'name': self.name, } + def url_identifier(self): + return 'https://example.com/user/{}'.format( + self.name, + )