0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-28 08:48:04 +01:00

Added __repr__ to EditorsPicK

This commit is contained in:
Karl Hobley 2014-07-04 11:33:34 +01:00
parent 26cacbc95a
commit fe3c2e6c0b

View File

@ -76,6 +76,9 @@ class EditorsPick(models.Model):
sort_order = models.IntegerField(null=True, blank=True, editable=False)
description = models.TextField(blank=True)
def __repr__(self):
return 'EditorsPick(query="' + self.query.query_string + '", page="' + self.page.title + '")'
class Meta:
ordering = ('sort_order', )