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