forked from uncloud/uncloud
18 lines
477 B
Python
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__'
|