old_contents: from django.contrib.auth.models import User, Group
  from rest_framework import serializers
  
  
  class UserSerializer(serializers.HyperlinkedModelSerializer):
      class Meta:
          model = User
          fields = '__all__'
          extra_kwargs = {
              'url': {'view_name': 'users-detail-api'}
              }
  
  class GroupSerializer(serializers.HyperlinkedModelSerializer):
      """
      Serializer class django.contrib.auth.models.Group
      """
      class Meta:
          model = Group
          fields = '__all__'
  
new_contents: from django.contrib.auth.models import User, Group
  from rest_framework import serializers
  
  
  class UserSerializer(serializers.HyperlinkedModelSerializer):
      class Meta:
          model = User
          fields = '__all__'
          extra_kwargs = {
              'url': {'view_name': 'users-detail-api'}
              }
  
  class GroupSerializer(serializers.HyperlinkedModelSerializer):
      """
      Serializer class django.contrib.auth.models.Group
      """
      class Meta:
          model = Group
          fields = '__all__'
          extra_kwargs = {
                  'url': {'view_name': 'groups-detail-api'}
                  }
  
subject: define url for lookup_field HyperLinkModelSerializer in GroupSerializer