Skip to content

Commit

Permalink
Fix infinite recursion when adding new pages
Browse files Browse the repository at this point in the history
  • Loading branch information
bikeshedder committed Mar 26, 2013
1 parent 07b28ff commit d51bd37
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cms/models/pagemodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d51bd37

Please sign in to comment.