Added unicode method to PageRevision

pull/372/head
Karl Hobley 2014-06-26 14:49:18 +01:00
rodzic deb2e0f9d8
commit 1a0ffa799d
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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'),