code: def formfield_for_dbfield(self, db_field, **kwargs):
          
          formfield = super().formfield_for_dbfield(db_field, **kwargs)
          if db_field.name == 'image':
              formfield.widget = ImageRelatedFieldWidgetWrapper(
                  ImageSelect(), db_field.rel, self.admin_site, can_add_related=True,
                  can_change_related=True,
              )
          return formfield
docs: Hook for specifying the form Field instance for a given database Field
          instance.
  
          If kwargs are given, they're passed to the form Field's constructor.