  
          view_name = getattr(self.Meta, 'view_name', None)
          if view_name is not None:
              warnings.warn(
                  "The `Meta.view_name` option is pending deprecation. "
                  "Use `Meta.extra_kwargs={'url': {'view_name': ...}}` instead.",
                  PendingDeprecationWarning,
                  stacklevel=3
              )
              kwargs = extra_kwargs.get(api_settings.URL_FIELD_NAME, {})
 
</s> remove                 PendingDeprecationWarning,
 </s> add                 DeprecationWarning, </s> remove                 "The `Meta.lookup_field` option is pending deprecation. "
 </s> add                 "The `Meta.lookup_field` option is deprecated. " </s> remove                 "The `Meta.write_only_fields` option is pending deprecation. "
 </s> add                 "The `Meta.write_only_fields` option is deprecated. " </s> remove                 PendingDeprecationWarning,
 </s> add                 DeprecationWarning, </s> remove                 PendingDeprecationWarning,
 </s> add                 DeprecationWarning,
                "The `Meta.view_name` option is deprecated. "
  
          view_name = getattr(self.Meta, 'view_name', None)
          if view_name is not None:
              warnings.warn(
                "The `Meta.view_name` option is deprecated. "
                  "Use `Meta.extra_kwargs={'url': {'view_name': ...}}` instead.",
                  PendingDeprecationWarning,
                  stacklevel=3
              )
              kwargs = extra_kwargs.get(api_settings.URL_FIELD_NAME, {})
keep keep keep keep replace keep keep keep keep keep
 Upgrade pending deprecations to deprecations 
rest_framework/serializers.py