mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-09 16:04:45 +00:00
Added unicode method to PageRevision
This commit is contained in:
parent
deb2e0f9d8
commit
1a0ffa799d
1 changed files with 3 additions and 0 deletions
|
|
@ -745,6 +745,9 @@ class PageRevision(models.Model):
|
|||
self.submitted_for_moderation = False
|
||||
page.revisions.update(submitted_for_moderation=False)
|
||||
|
||||
def __unicode__(self):
|
||||
return '"' + unicode(self.page) + '" at ' + unicode(self.created_at)
|
||||
|
||||
PAGE_PERMISSION_TYPE_CHOICES = [
|
||||
('add', 'Add'),
|
||||
('edit', 'Edit'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue