Skip to content

Commit

Permalink
Fix Django warnings admin.W411 and models.W042
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored and claudep committed Jan 4, 2024
1 parent 3a566a5 commit 3267b83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
exclude: ".*/vendor/.*"
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.9
rev: v0.1.11
hooks:
- id: ruff
# args: [ --fix, --exit-non-zero-on-fix ]
Expand Down
4 changes: 4 additions & 0 deletions test_haystack/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": "haystack_tests.db"}
}

# Use BigAutoField as the default auto field for all models
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"

INSTALLED_APPS = [
"django.contrib.admin",
"django.contrib.auth",
Expand All @@ -34,6 +37,7 @@
"APP_DIRS": True,
"OPTIONS": {
"context_processors": [
"django.template.context_processors.request",
"django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages",
]
Expand Down

0 comments on commit 3267b83

Please sign in to comment.