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