mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 14:44:29 -04:00
re-enable autocomplete tag field for now as its breaking action buttons display
This commit is contained in:
parent
b0da386793
commit
fcdc41a1ab
3 changed files with 16 additions and 15 deletions
|
@ -48,25 +48,25 @@ class TagInline(admin.TabularInline):
|
||||||
from django.contrib.admin.helpers import ActionForm
|
from django.contrib.admin.helpers import ActionForm
|
||||||
from django.contrib.admin.widgets import AutocompleteSelectMultiple
|
from django.contrib.admin.widgets import AutocompleteSelectMultiple
|
||||||
|
|
||||||
# WIP: commented out because broken by Django 3.1.2 -> 4.0 migration
|
# WIP: broken by Django 3.1.2 -> 4.0 migration
|
||||||
# class AutocompleteTags:
|
class AutocompleteTags:
|
||||||
# model = Tag
|
model = Tag
|
||||||
# search_fields = ['name']
|
search_fields = ['name']
|
||||||
# name = 'tags'
|
name = 'tags'
|
||||||
|
|
||||||
# class AutocompleteTagsAdminStub:
|
class AutocompleteTagsAdminStub:
|
||||||
# name = 'admin'
|
name = 'admin'
|
||||||
|
|
||||||
|
|
||||||
class SnapshotActionForm(ActionForm):
|
class SnapshotActionForm(ActionForm):
|
||||||
tags = forms.ModelMultipleChoiceField(
|
tags = forms.ModelMultipleChoiceField(
|
||||||
queryset=Tag.objects.all(),
|
queryset=Tag.objects.all(),
|
||||||
required=False,
|
required=False,
|
||||||
# WIP: commented out because broken by Django 3.1.2 -> 4.0 migration
|
# WIP: broken by Django 3.1.2 -> 4.0 migration
|
||||||
# widget=AutocompleteSelectMultiple(
|
widget=AutocompleteSelectMultiple(
|
||||||
# # AutocompleteTags(),
|
AutocompleteTags(),
|
||||||
# # AutocompleteTagsAdminStub(),
|
AutocompleteTagsAdminStub(),
|
||||||
# ),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
# TODO: allow selecting actions for specific extractors? is this useful?
|
# TODO: allow selecting actions for specific extractors? is this useful?
|
||||||
|
|
|
@ -3,4 +3,5 @@ from django.apps import AppConfig
|
||||||
|
|
||||||
class CoreConfig(AppConfig):
|
class CoreConfig(AppConfig):
|
||||||
name = 'core'
|
name = 'core'
|
||||||
# default_auto_field = 'django.db.models.UUIDField'
|
# WIP: broken by Django 3.1.2 -> 4.0 migration
|
||||||
|
default_auto_field = 'django.db.models.UUIDField'
|
||||||
|
|
|
@ -268,8 +268,8 @@ AUTH_PASSWORD_VALIDATORS = [
|
||||||
{'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator'},
|
{'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator'},
|
||||||
]
|
]
|
||||||
|
|
||||||
# WIP: commented out because broken by Django 3.1.2 -> 4.0 migration
|
# WIP: broken by Django 3.1.2 -> 4.0 migration
|
||||||
# DEFAULT_AUTO_FIELD = 'django.db.models.UUIDField'
|
DEFAULT_AUTO_FIELD = 'django.db.models.UUIDField'
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
### Shell Settings
|
### Shell Settings
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue