Skip to content

Commit

Permalink
Fix 500 error on viewing a group with a custom group schema
Browse files Browse the repository at this point in the history
display_name was missing from group_form_schema() so if an IGroupForm
plugin with a custom db_to_form_schema() for groups was in use, the
group read template would crash with a 500. Add display_name to the
schema so that the template renders successfully.
  • Loading branch information
Sean Hammond committed Jul 18, 2012
1 parent 8ed099b commit 952f28b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ckan/logic/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ def group_form_schema():
"capacity": [ignore_missing],
"__extras": [ignore]
}
schema['display_name'] = [ignore_missing]
return schema


Expand Down

0 comments on commit 952f28b

Please sign in to comment.