From af4e7437a3ba571e462e8b2a3766da2116056feb Mon Sep 17 00:00:00 2001 From: Isaac Bythewood Date: Sat, 11 Feb 2017 05:23:07 +0000 Subject: [PATCH] self.url is not always set, return required fields for pin --- pinry/core/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pinry/core/models.py b/pinry/core/models.py index 2c37753..834b7c4 100644 --- a/pinry/core/models.py +++ b/pinry/core/models.py @@ -46,4 +46,5 @@ class Pin(models.Model): tags = TaggableManager() def __unicode__(self): - return self.url + return '%s - %s' % (self.submitter, self.published) +