          if write_only_fields is not None:
              warnings.warn(
                  "The `Meta.write_only_fields` option is pending deprecation. "
                  "Use `Meta.extra_kwargs={<field_name>: {'write_only': True}}` instead.",
                  PendingDeprecationWarning,
                  stacklevel=3
              )
              for field_name in write_only_fields:
                  kwargs = extra_kwargs.get(field_name, {})
                  kwargs['write_only'] = True
 
</s> remove                 "The `Meta.write_only_fields` option is pending deprecation. "
 </s> add                 "The `Meta.write_only_fields` option is deprecated. " </s> remove                 "The `Meta.lookup_field` option is pending deprecation. "
 </s> add                 "The `Meta.lookup_field` option is deprecated. " </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                 PendingDeprecationWarning,
 </s> add                 DeprecationWarning,
                DeprecationWarning,
          if write_only_fields is not None:
              warnings.warn(
                  "The `Meta.write_only_fields` option is pending deprecation. "
                  "Use `Meta.extra_kwargs={<field_name>: {'write_only': True}}` instead.",
                DeprecationWarning,
                  stacklevel=3
              )
              for field_name in write_only_fields:
                  kwargs = extra_kwargs.get(field_name, {})
                  kwargs['write_only'] = True
keep keep keep keep replace keep keep keep keep keep
 Upgrade pending deprecations to deprecations 
rest_framework/serializers.py