self.url is not always set, return required fields for pin

This commit is contained in:
Isaac Bythewood
2017-02-11 05:23:07 +00:00
parent 0f7bb8cf84
commit af4e7437a3

View File

@@ -46,4 +46,5 @@ class Pin(models.Model):
tags = TaggableManager() tags = TaggableManager()
def __unicode__(self): def __unicode__(self):
return self.url return '%s - %s' % (self.submitter, self.published)