text: from django.contrib.auth.models import Group, User
  from rest_framework import serializers
  
  
  class UserSerializer(serializers.HyperlinkedModelSerializer):
      """User Serializer"""
  
      class Meta:
          model = User
          fields = ["url", "username", "email", "groups"]
  
  
  class GroupSerializer(serializers.HyperlinkedModelSerializer):
      """Group Serializer"""
  
      class Meta:
          model = Group
          fields = ["url", "name"]
  