text: from rest_framework import serializers
  from stl_dsa.users.models import User
  
  
  class UserSerializer(serializers.ModelSerializer):
      class Meta:
          model = User
          fields = ["username", "email", "name", "url"]
  
          extra_kwargs = {
              "url": {"view_name": "api:user-detail", "lookup_field": "username"}
          }
  