mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-19 22:41:00 +00:00
Added __repr__ to EditorsPicK
This commit is contained in:
parent
26cacbc95a
commit
fe3c2e6c0b
1 changed files with 3 additions and 0 deletions
|
|
@ -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', )
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue