mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 21:29:11 +00:00
Improve scaling admin flow to delete all entries for user
This commit is contained in:
@@ -112,7 +112,7 @@ ASGI_APPLICATION = "app.asgi.application"
|
|||||||
|
|
||||||
# Database
|
# Database
|
||||||
# https://docs.djangoproject.com/en/4.2/ref/settings/#databases
|
# https://docs.djangoproject.com/en/4.2/ref/settings/#databases
|
||||||
|
DATA_UPLOAD_MAX_NUMBER_FIELDS = 20000
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
"default": {
|
"default": {
|
||||||
"ENGINE": "django.db.backends.postgresql",
|
"ENGINE": "django.db.backends.postgresql",
|
||||||
|
|||||||
@@ -125,7 +125,10 @@ class EntryAdmin(admin.ModelAdmin):
|
|||||||
"file_path",
|
"file_path",
|
||||||
)
|
)
|
||||||
search_fields = ("id", "user__email", "user__username", "file_path")
|
search_fields = ("id", "user__email", "user__username", "file_path")
|
||||||
list_filter = ("file_type",)
|
list_filter = (
|
||||||
|
"file_type",
|
||||||
|
"user__email",
|
||||||
|
)
|
||||||
ordering = ("-created_at",)
|
ordering = ("-created_at",)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user