code: def include_extra_kwargs(self, kwargs, extra_kwargs):
          
          if extra_kwargs.get('read_only', False):
              for attr in [
                  'required', 'default', 'allow_blank', 'allow_null',
                  'min_length', 'max_length', 'min_value', 'max_value',
                  'validators', 'queryset'
              ]:
                  kwargs.pop(attr, None)
  
          if extra_kwargs.get('default') and kwargs.get('required') is False:
              kwargs.pop('required')
  
          if extra_kwargs.get('read_only', kwargs.get('read_only', False)):
              extra_kwargs.pop('required', None)  # Read only fields should always omit the 'required' argument.
  
          kwargs.update(extra_kwargs)
  
          return kwargs
docs: Include any 'extra_kwargs' that have been included for this field,
          possibly removing any incompatible existing keyword arguments.