Skip to content

Commit

Permalink
Display page title instead of menu title (#194)
Browse files Browse the repository at this point in the history
* Display page title instead of menu title

* Update Changelog

Co-authored-by: Adrien Delhorme <[email protected]>
  • Loading branch information
adrien-delhorme and Adrien Delhorme authored Mar 17, 2022
1 parent 1d0417e commit 3afb7e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Changelog
=========

Unreleased
==========

* Display page title instead of menu title


3.0.0 (2020-09-02)
==================
Expand Down
3 changes: 3 additions & 0 deletions djangocms_link/fields_select2.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ class Select2PageSearchFieldMixin:
'title_set__slug__icontains'
]

def label_from_instance(self, obj):
return obj.get_title()


class Select2PageSelectWidget(Select2PageSearchFieldMixin, ModelSelect2Widget):
site = None
Expand Down

0 comments on commit 3afb7e4

Please sign in to comment.