uncloud-mravi/uncloud_django_based/uncloud/uncloud_net/serializers.py
Nico Schottelius 5d084a5716 phase in vpn
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-04-03 19:27:49 +02:00

13 lines
355 B
Python

from django.contrib.auth import get_user_model
from rest_framework import serializers
from .models import *
class VPNProductSerializer(serializers.ModelSerializer):
network_size = serializers.IntegerField(min_value=0,
max_value=128)
class Meta:
model = VPNProduct
fields = '__all__'