Commit d695e7ed authored by Pablo Panero's avatar Pablo Panero
Browse files

serializer: rename record validation function

parent 21d77919
......@@ -25,7 +25,7 @@ def has_and_needs_binary(original_data):
class CSASRecordSchemaV1(RecordMetadataSchemaJSONV1):
@validates_schema(pass_original=True)
def add_unknown_fields(self, data, original_data):
def validate_record(self, data, original_data):
if not original_data.get('_access'):
raise ValidationError('Missing field _access')
delete = original_data.get('_access').get('delete')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment