title: How to use django-select2 widgets in django admin site?
body: <p>In my django app I have modified the User entity to include a worker field (OneToOneField). But from the django admin site that field yiels so many result , so it is difficult for the logged user to select a worker. Is there any way to use the select2 (ModelSelect2Widget) widgets from the django admin site?
  For any regular form I have define the widgets in the following way:</p>
  <pre><code>from django_select2.forms import ModelSelect2Widget
      class ProcessForm(forms.ModelForm):
          class Meta:
              model = ProcessModel
              exclude = ('id',)
      
              widgets = {
                  'name':forms.TextInput(attrs={'class': 'form-control'}),
                  'code':forms.TextInput(attrs={'class': 'form-control'}),
                  'description':forms.Textarea(attrs={'class': 'form-control'}),
                  'geom': LeafletWidget(),
                  'product': ModelSelect2Widget(model=ProductModel, queryset=ProductModel.objects.filter(),
                                                  search_fields=['name__icontains'],
                                                  attrs={'style': 'width: 100%;'}), 
      }
  </code></pre>
  <p>Is there any way to use the ModelSelect2Widget for the worker field in the admin site form?
  Here is my code:</p>
  <pre><code>class User(AbstractUser):
      worker = models.OneToOneField(WorkerModel, on_delete=models.CASCADE, 
                  related_name=&quot;user&quot;, verbose_name=_(&quot;Trabajador&quot;), null=True, blank=True)
  
      
      class Meta:
          default_permissions = ()
          verbose_name=&quot;Usuario&quot;
          verbose_name_plural=&quot;Usuarios&quot;
          permissions = (
              (&quot;secretario&quot;, &quot;Secretario(a)&quot;),
              (&quot;director&quot;, &quot;Director&quot;),
          
          )
  from django.contrib.auth.admin import UserAdmin
  
  class UserAdminInherited(UserAdmin):
      fieldsets = (
          (None, {'fields': ('username', 'password')}),
          (_('Personal info'), {'fields': ('first_name', 'last_name', 'email')}),
          (_('Worker info'), {'fields': ('worker',)}),
          (_('Permissions'), {
              'fields': ('is_active', 'is_staff', 'is_superuser', 'groups', 'user_permissions'),
          }),
          (_('Important dates'), {'fields': ('last_login', 'date_joined')}),
      )
  
  admin.site.register(User, UserAdminInherited)
  </code></pre>