Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Oct 28, 2024
1 parent 80335b5 commit f8e8e5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,11 @@ Large search-sets

If you have a large number of internally linkable models, you can use the
``DJANGOCMS_LINK_MINIMUM_INPUT_LENGTH`` setting to require a minimum number of
characters typed before the search is triggered. The default is 0::
characters typed before the search is triggered. The higher the number, the
smaller the average result set size. The default is 0::

# Require at least 2 characters to be typed before searching for pages
DJANGOCMS_LINK_MINIMUM_INPUT_LENGTH = 2
DJANGOCMS_LINK_MINIMUM_INPUT_LENGTH = 2

Non-standard hostnames
......................
Expand Down
3 changes: 2 additions & 1 deletion tests/test_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ class LinkForm(forms.Form):
'data-help="Select from available internal destinations. Optionally, add an anchor to scroll to." '
'data-placeholder="" required id="id_link_field_2" class="admin-autocomplete" data-ajax--cache="true" '
'data-ajax--delay="250" data-ajax--type="GET" data-ajax--url="/en/admin/djangocms_link/link/urls" '
'data-theme="admin-autocomplete" data-allow-clear="true" lang="en">'
'data-theme="admin-autocomplete" data-allow-clear="true" '
'data-minimum-input-length="0" lang="en">'
'<option value=""></option><option value="" selected>None</option>'
'</select>',
form_html
Expand Down

0 comments on commit f8e8e5a

Please sign in to comment.