changed data to attrs

This commit is contained in:
napsterv 2019-09-16 18:45:08 +05:30 committed by GitHub
parent 89ac0a1c7e
commit cd1d01960d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -218,7 +218,7 @@ in the `.validate()` method, or else in the view.
For example:
class BillingRecordSerializer(serializers.ModelSerializer):
def validate(self, data):
def validate(self, attrs):
# Apply custom validation either here, or in the view.
class Meta: