Remove redundant required=True from serializer fields

`required=True` is default setting
This commit is contained in:
Maxim Kukhtenkov 2016-12-07 21:47:07 -05:00
parent f79537de77
commit f200b8d6f0

View File

@ -181,9 +181,8 @@ class PasswordResetConfirmSerializer(serializers.Serializer):
new_password1 = serializers.CharField(max_length=128) new_password1 = serializers.CharField(max_length=128)
new_password2 = serializers.CharField(max_length=128) new_password2 = serializers.CharField(max_length=128)
uid = serializers.CharField()
uid = serializers.CharField(required=True) token = serializers.CharField()
token = serializers.CharField(required=True)
set_password_form_class = SetPasswordForm set_password_form_class = SetPasswordForm