class CustomModelAdmin:

    def formfield_for_manytomany(self, db_field, request=None, **kwargs):
        """
        Get a form Field for a ManyToManyField.
        """
if not db_field.rel.through._meta.auto_created:
    pass
In django-admin, how can I set filter_horizontal as the default?