dal_admin_filters icon indicating copy to clipboard operation
dal_admin_filters copied to clipboard

ImportError: cannot import name 'lookup_needs_distinct' from 'django.contrib.admin.utils'

Open Goathemis opened this issue 3 years ago • 4 comments

Goathemis avatar Feb 02 '22 15:02 Goathemis

i implement on Django 4.0.1 when i installed dal_admin_filter then installed in settings.py showning below

ImportError: cannot import name 'lookup_needs_distinct' from 'django.contrib.admin.utils'

Goathemis avatar Feb 02 '22 15:02 Goathemis

Help~

wushancool avatar Jun 11 '22 09:06 wushancool

From the release notes:

The undocumented django.contrib.admin.utils.lookup_needs_distinct() function is renamed to lookup_spawns_duplicates().

ambroisie avatar Sep 16 '22 13:09 ambroisie

Its a django-autocomplete-light issue. See https://github.com/yourlabs/django-autocomplete-light/issues/1260 Seems to be resolved since v3.9.5

qdelcourte avatar May 13 '24 12:05 qdelcourte