old_contents: from csacompendium.countries.models import Country
  from rest_framework.serializers import ModelSerializer
  
  
  class CountryListSerializer(ModelSerializer):
      """
      Serialize all records in given fields into an API
      """
      class Meta:
          model = Country
          fields = [
              'id',
              'user',
              'country_name',
              'slug',
              'country_code',
          ]
  
  
  class CountryDetailSerializer(ModelSerializer):
      """
      Serialize single record into an API. This is dependent on fields given.
      """
      class Meta:
          model = Country
          fields = [
              'id',
              'country_code',
              'country_name',
              'user',
              'modified_by',
              'last_update',
              'time_created',
          ]
  
  
  class CountryCreateUpdateSerializer(ModelSerializer):
      """
      Creates or updates a record.
      """
      class Meta:
          model = Country
          fields = [
              'country_code',
              'country_name',
          ]
  
  
new_contents: from rest_framework.serializers import ModelSerializer
  from csacompendium.countries.models import Country
  
  
  class CountryListSerializer(ModelSerializer):
      """
      Serialize all records in given fields into an API
      """
      class Meta:
          model = Country
          fields = [
              'id',
              'user',
              'country_name',
              'slug',
              'country_code',
          ]
  
  
  class CountryDetailSerializer(ModelSerializer):
      """
      Serialize single record into an API. This is dependent on fields given.
      """
      class Meta:
          model = Country
          fields = [
              'id',
              'country_code',
              'country_name',
              'user',
              'modified_by',
              'last_update',
              'time_created',
          ]
  
  
  class CountryCreateUpdateSerializer(ModelSerializer):
      """
      Creates or updates a record.
      """
      class Meta:
          model = Country
          fields = [
              'country_code',
              'country_name',
          ]
  
  
subject: Undo rearranged imports