class TestSerializer(serializers.Serializer):
     mac = fields.MACAddressField()
Пример #2
0
 class TestSerializer(serializers.Serializer):
     ip = fields.MACAddressField(validators=[validate])