Permalink
Browse files

Fix infinite recursion when adding new pages

  • Loading branch information...
1 parent 07b28ff commit d51bd37aa3699bde6198cf488e4d2b81281fdd0a @bikeshedder bikeshedder committed Mar 26, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 cms/models/pagemodel.py
@@ -104,6 +104,11 @@ def __unicode__(self):
title = u""
return unicode(title)
+ def __repr__(self):
+ # This is needed to solve the infinite recursion when
+ # adding new pages.
+ return object.__repr__(self)
+
def is_dirty(self):
return self.publisher_state == self.PUBLISHER_STATE_DIRTY

0 comments on commit d51bd37

Please sign in to comment.