дело?
class RegistrationSerializer(serializers.ModelSerializer):
password2 = serializers.CharField(
write_only=True, style={'input-type': 'password'}
)
class Meta:
model = User
fields = ['username, email, password, password2']
Ошибка - The field 'password2' was declared on serializer RegistrationSerializer, but has not been included in the 'fields' option.
Кавычки не там
Господи, благодарю
Обсуждают сегодня