Skip to content

Commit

Permalink
Merge pull request #27 from oleksiyVeretiuk/512682666890491_clear_rel…
Browse files Browse the repository at this point in the history
…atedLot

Get data from `json` except `validated`
  • Loading branch information
leits committed Jan 30, 2018
2 parents 48bc5bc + d4a09b5 commit 633eaac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openregistry/api/validation.py
Expand Up @@ -77,7 +77,7 @@ def validate_change_status(request, error_handler, **kwargs):
# Get resource_type
resource_type = request.validated['resource_type']
# Get status from PATCH validated data
new_status = request.validated['data'].get("status")
new_status = request.json['data'].get("status")
# Get model from context
model = request.context

Expand Down

0 comments on commit 633eaac

Please sign in to comment.