from django.contrib.auth.models import User, Group
from dmujeresapirest.models import Client
from rest_framework import serializers


class UserSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = User
        fields = ['url', 'username', 'email', 'groups']


class GroupSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Group
        fields = ['url', 'name']


class ClientSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Client
        fields = ['name', 'lastname', 'identification', 'telephone', 'address']

a59e03352cc9a79de90f21558f25d47110edf6d3
<mask token>

<mask token>


class GroupSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Group
        fields = ['url', 'name']


class ClientSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Client
        fields = ['name', 'lastname', 'identification', 'telephone', 'address']

<mask token>


class UserSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = User
        fields = ['url', 'username', 'email', 'groups']


class GroupSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Group
        fields = ['url', 'name']


class ClientSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Client
        fields = ['name', 'lastname', 'identification', 'telephone', 'address']

from django.contrib.auth.models import User, Group
from dmujeresapirest.models import Client
from rest_framework import serializers


class UserSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = User
        fields = ['url', 'username', 'email', 'groups']


class GroupSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Group
        fields = ['url', 'name']


class ClientSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Client
        fields = ['name', 'lastname', 'identification', 'telephone', 'address']
