Skip to content

Commit

Permalink
feat: Added search capability in AliasContent admin (migrate the 4.0.…
Browse files Browse the repository at this point in the history
…x feature from PR django-cms#236)
  • Loading branch information
joshyu committed Aug 20, 2024
1 parent 7fa065c commit 37c1738
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Changelog
Unreleased
==========
* fix: `get_absolute_url` method not found while creating new alias and category from wizard button.
* feat: Added search capability in AliasContent admin (migrate the 4.0.x feature from PR #236)


2.0.1 (2024-03-27)
Expand Down
1 change: 1 addition & 0 deletions djangocms_alias/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class AliasAdmin(*alias_admin_classes):
)
fields = ("content__name", "category", "site", "content__language")
readonly_fields = ("static_code",)
search_fields = ["content__name"]
form = AliasGrouperAdminForm
extra_grouping_fields = ("language",)
EMPTY_CONTENT_VALUE = mark_safe(_("<i>Missing language</i>"))
Expand Down

0 comments on commit 37c1738

Please sign in to comment.