old_contents: from rest_framework import serializers
  from rest_auth.serializers import UserDetailsSerializer
  from wagtail.wagtailimages.models import Image
  
  
  class ImageSerializer(serializers.HyperlinkedModelSerializer):
      class Meta:
          model = Image
          fields = ('id',
                    'file',
                    'title',
                    'height',
                    'width',
                    'created_at',
                    #'url',
                    )
  
  
  class UserSerializer(UserDetailsSerializer):
      groups = serializers.StringRelatedField(many=True)
      
      class Meta(UserDetailsSerializer.Meta):
          fields = ('username',
                    'first_name',
                    'last_name', 
                    'email', 
                    'is_staff', 
                    'is_superuser',
                    'groups')
          read_only_fields = ('username',
                              'first_name',
                              'last_name', 
                              'email', 
                              'is_staff', 
                              'is_superuser',
                              'groups')
  
  
new_contents: from rest_framework import serializers
  from rest_auth.serializers import UserDetailsSerializer
  from wagtail.wagtailimages.models import Image
  
  
  class ImageSerializer(serializers.HyperlinkedModelSerializer):
      class Meta:
          model = Image
          fields = ('id',
                    'file',
                    'title',
                    'height',
                    'width',
                    'created_at',
                    #'url',
                    )
  
  
  class UserSerializer(UserDetailsSerializer):
      groups = serializers.StringRelatedField(many=True)
      
      class Meta(UserDetailsSerializer.Meta):
          fields = ('username',
                    'first_name',
                    'last_name',
                    'is_staff', 
                    'is_superuser',
                    'groups')
          read_only_fields = ('username',
                              'first_name',
                              'last_name', 
                              'is_staff', 
                              'is_superuser',
                              'groups')
  
  
subject: remove email from user api - not helpful