class TestSerializer(serializers.Serializer):
     mac = fields.MACAddressField()
Beispiel #2
0
 class TestSerializer(serializers.Serializer):
     ip = fields.MACAddressField(validators=[validate])