Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/asottile/pyupgrade
rev: v3.21.2
hooks:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The current maintainers are no longer actively using `drf-haystack` and would
like to [hand over the project to other developers](https://github.com/rhblind/drf-haystack/issues/146) who are using the package.

We will still do the bare minimum maintenance of keeping dependency references
We will still do the bare minimum maintenance of keeping dependency references
up to date with new releases of related packages **until January 1st 2026**.

If by that time no new maintainers have joined to take over the project, we
Expand Down
1 change: 0 additions & 1 deletion docs/01_intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,3 @@ The default keyword is ``not``, but is configurable via settings using ``DRF_HAY
http://example.com/api/v1/location/search/?city__not=Oslo
http://example.com/api/v1/location/search/?city__not__contains=Los
http://example.com/api/v1/location/search/?city__contains=Los&city__not__contains=Angeles

1 change: 0 additions & 1 deletion docs/02_autocomplete.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,3 @@ An example using the autocomplete filter might look something like this.
index_models = [Location]
serializer_class = AutocompleteSerializer
filter_backends = [HaystackAutocompleteFilter]

2 changes: 0 additions & 2 deletions drf_haystack/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,3 @@ class FacetListField(fields.ListField):

def to_representation(self, key, data):
return [self.child.to_representation(key, item) for item in data]


2 changes: 1 addition & 1 deletion drf_haystack/generics.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def get_object(self):

def filter_queryset(self, queryset):
queryset = super().filter_queryset(queryset)

if self.load_all:
queryset = queryset.load_all()

Expand Down
1 change: 0 additions & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,3 @@ def setup():
def teardown():
test_runner.teardown_databases(old_config)
test_runner.teardown_test_environment()

1 change: 0 additions & 1 deletion tests/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@
class MockappConfig(AppConfig):
name = "mockapp"
verbose_name = "Mock Application"

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{{ object.address }} {{ object.zip_code }} {{ object.city }}
Created: {{ object.created }}
Last modified: {{ object.updated }}
Last modified: {{ object.updated }}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{{ object.name }}
{{ object.name }}