kopia lustrzana https://github.com/wagtail/wagtail
Added unicode method to PageRevision
rodzic
deb2e0f9d8
commit
1a0ffa799d
|
@ -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'),
|
||||
|
|
Ładowanie…
Reference in New Issue