Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Oct 28, 2024
1 parent 605c44d commit 35a874e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,16 @@ in the ``DJANGOCMS_LINKABLE_MODELS`` setting using dotted strings::

Attention: ``Page`` objects are always linkable.

django CMS Link will use the model admin's ``get_queryset`` method to retrieve
the list of objects. If you want to add custom filters, sorting or site
handling, you can add a ``get_link_queryset`` method to the model admin::

class MyModelAdmin(admin.ModelAdmin):
def get_link_queryset(self, request, site_id):
"""Only used by djangocms-link: returns queryset to select link targets from."""
qs = self.get_queryset(request)
return qs.filter(is_public=True)

Large search-sets
..................

Expand Down

0 comments on commit 35a874e

Please sign in to comment.