mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 09:25:06 +01:00
Improve scaling admin flow to delete all entries for user
This commit is contained in:
parent
6d59ad7fc9
commit
1ab59865b5
2 changed files with 5 additions and 2 deletions
|
@ -112,7 +112,7 @@ ASGI_APPLICATION = "app.asgi.application"
|
|||
|
||||
# Database
|
||||
# https://docs.djangoproject.com/en/4.2/ref/settings/#databases
|
||||
|
||||
DATA_UPLOAD_MAX_NUMBER_FIELDS = 20000
|
||||
DATABASES = {
|
||||
"default": {
|
||||
"ENGINE": "django.db.backends.postgresql",
|
||||
|
|
|
@ -125,7 +125,10 @@ class EntryAdmin(admin.ModelAdmin):
|
|||
"file_path",
|
||||
)
|
||||
search_fields = ("id", "user__email", "user__username", "file_path")
|
||||
list_filter = ("file_type",)
|
||||
list_filter = (
|
||||
"file_type",
|
||||
"user__email",
|
||||
)
|
||||
ordering = ("-created_at",)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue