uncloud-mravi/uncloud_django_based/uncloud/uncloud_net/serializers.py
Nico Schottelius 913e992a48 [vpn] fix urls
2020-04-06 22:30:01 +02:00

18 lines
477 B
Python

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