Skip to content

Commit

Permalink
fix: fix toposort issue (see issue #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
henri-hulski committed Feb 28, 2017
1 parent 9908558 commit 03228ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions more/body_model/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def _load_json(self, json, request):
return json


@App.predicate(App.get_view, name='body_model', default=object,
@App.predicate(morepath.App.get_view, name='body_model', default=object,
index=ClassIndex, after=morepath.request_method_predicate)
def body_model_predicate(self, obj, request):
"""match request.body_obj with body_model by class.
Expand All @@ -38,7 +38,7 @@ def body_model_predicate(self, obj, request):
return request.body_obj.__class__


@App.predicate_fallback(App.get_view, body_model_predicate)
@App.predicate_fallback(morepath.App.get_view, body_model_predicate)
def body_model_unprocessable(request):
"""if body_model not matched, 422.
Expand Down

0 comments on commit 03228ad

Please sign in to comment.