Skip to content

Commit

Permalink
fix SacrudOptions for model w/o parent
Browse files Browse the repository at this point in the history
  • Loading branch information
uralbash committed Jul 13, 2015
1 parent 5a44145 commit cedec1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyramid_pages/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def sacrud_css_class(cls):
def sacrud_detail_col(cls):
options = [
('', [cls.name, cls.slug, cls.description, cls.visible,
cls.in_menu, cls.parent])
cls.in_menu, getattr(cls, 'parent', None)])
]
if all(hasattr(cls, name)
for name in ('redirect_url', 'redirect', 'redirect_type')):
Expand Down

0 comments on commit cedec1c

Please sign in to comment.