diff oembed/models.py @ 911:d3f6e9cb1f39

First take at an oembed refresh command.
author Brian Neal <bgneal@gmail.com>
date Tue, 17 Mar 2015 21:24:45 -0500
parents ee87ea74d46b
children 4da4e32b314c
line wrap: on
line diff
--- a/oembed/models.py	Mon Mar 16 21:05:22 2015 -0500
+++ b/oembed/models.py	Tue Mar 17 21:24:45 2015 -0500
@@ -47,7 +47,8 @@
     date_added = models.DateTimeField()
 
     def __unicode__(self):
-        return self.title or self.url
+        desc = self.title if self.title else self.url
+        return u"<oembed {}: {}>".format(self.pk, desc)
 
     def save(self, *args, **kwargs):
         if not self.pk: