Skip to content

Commit

Permalink
Merge branch 'document_service'
Browse files Browse the repository at this point in the history
  • Loading branch information
kroman0 committed Oct 6, 2016
2 parents 7e455d0 + 6d23518 commit 6a95f70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/openprocurement/api/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ def validate_patch_lot_data(request):


def validate_document_data(request):
model = type(request.validated['db_doc']).documents.model_class
context = request.context if 'documents' in request.context else request.context.__parent__
model = type(context).documents.model_class
return validate_data(request, model)


Expand Down

0 comments on commit 6a95f70

Please sign in to comment.