Skip to content

Commit

Permalink
Revert django-upgrade changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ronardcaktus committed Jul 18, 2023
1 parent 6e22cd3 commit ce6291c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,3 @@ repos:
rev: 6.0.0
hooks:
- id: flake8

- repo: https://github.com/adamchainz/django-upgrade
rev: "1.14.0"
hooks:
- id: django-upgrade
args: [--target-version, "4.2"]
4 changes: 2 additions & 2 deletions bread/bread.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,9 @@ def construct_search(field_name):
use_distinct = True
break
except ImportError:
from django.contrib.admin.utils import lookup_spawns_duplicates
from django.contrib.admin.utils import lookup_needs_distinct

if lookup_spawns_duplicates(opts, search_spec):
if lookup_needs_distinct(opts, search_spec):
use_distinct = True
break

Expand Down

0 comments on commit ce6291c

Please sign in to comment.