MCPcopy Create free account

hub / github.com/yourlabs/django-autocomplete-light / functions

Functions702 in github.com/yourlabs/django-autocomplete-light

↓ 113 callersMethodget
(self, request)
test_project/tests/test_widgets.py:24
↓ 39 callersMethodselect_option
Assert that selecting option "text" sets input's value.
src/dal/test/stories.py:213
↓ 30 callersMethodcreate_option
Return option, content type.
test_project/select2_list/test_functional.py:19
↓ 23 callersMethodcreate
(self, text)
test_project/alight_tag/urls.py:12
↓ 22 callersMethodget_modeladmin_url
Return a modeladmin url for a model and action.
src/dal/test/case.py:96
↓ 20 callersMethodrender
(self, name, value, attrs=None)
test_project/tests/test_widgets.py:147
↓ 19 callersMethodassert_selection_persists
Assert value and lebel, submit the form and assert again.
src/dal/test/stories.py:113
↓ 16 callersMethodget
(self, request, *args, **kwargs)
src/dal_alight/views.py:145
↓ 15 callersMethodtoggle_autocomplete
Open the autocomplete dropdown.
src/dal/test/stories.py:171
↓ 13 callersMethodassert_labels
Assert that all labels match texts.
src/dal/test/stories.py:406
↓ 13 callersMethodsubmit
Submit the form.
src/dal/test/stories.py:142
↓ 12 callersFunction_installed
(*apps)
src/dal/autocomplete.py:27
↓ 11 callersMethodclick
Click an element by css selector.
src/dal/test/case.py:37
↓ 10 callersMethodassert_label
Assert that the autocomplete label matches text.
src/dal/test/stories.py:92
↓ 10 callersMethodassert_value
Assart that the actual field value matches value.
src/dal/test/stories.py:104
↓ 10 callersMethodcreate
(self, text)
test_project/alight_foreign_key/test_units.py:180
↓ 10 callersMethodcreate
(self, text)
test_project/select2_list/views.py:7
↓ 10 callersMethodenter_text
Enter text in an element by css selector.
src/dal/test/case.py:77
↓ 9 callersMethodassert_suggestion_labels_are
Retrying assert that suggestions match expected labels.
src/dal/test/stories.py:121
↓ 9 callersMethodassert_values
Assert that the actual field values matches values.
src/dal/test/stories.py:415
↓ 8 callersMethodassert_selection
Assert value is selected and has the given label.
src/dal/test/stories.py:108
↓ 8 callersMethodfill_name
Fill in the name input.
src/dal/test/case.py:104
↓ 8 callersMethodget_result_value
(self, result)
src/dal_alight/views.py:202
↓ 7 callersMethod_get
(self, view_cls, q='', **kwargs)
test_project/alight_foreign_key/test_units.py:188
↓ 7 callersMethod_get
(self, view_cls, q='')
test_project/alight_foreign_key/test_units.py:595
↓ 7 callersMethodget_model_name
Return the name of the model, fetch parent if model is a proxy.
src/dal_queryset_sequence/views.py:58
↓ 7 callersMethodpost
(self, request, *args, **kwargs)
test_project/alight_outside_admin/views.py:25
↓ 6 callersMethod_get
(self, q='', **kwargs)
test_project/alight_foreign_key/test_units.py:50
↓ 6 callersMethod_widget
(self)
test_project/alight_foreign_key/test_units.py:412
↓ 6 callersMethodget_result_label
Return the label of a result.
src/dal/views.py:103
↓ 6 callersMethodinstall_fixtures
Install fixtures for model.
src/dal/test/utils.py:24
↓ 6 callersMethodpost
(self, request, *args, **kwargs)
test_project/select2_outside_admin/views.py:28
↓ 5 callersMethod_get
(self, q='')
test_project/alight_generic_foreign_key/test_units.py:34
↓ 5 callersMethod_widget
(self)
test_project/alight_foreign_key/test_units.py:688
↓ 5 callersMethodchoiceSelect
(choice, trigger = true)
src/dal_alight/static/dal_alight/autocomplete-light.js:476
↓ 5 callersMethodcreate_option
(self, name)
src/dal/test/stories.py:334
↓ 5 callersMethodget
Return option list json response.
src/dal_select2/views.py:124
↓ 5 callersMethodto_dict
Convert to dictionary which will be rendered as JSON.
src/dal/forward.py:162
↓ 5 callersMethodvalue_from_datadict
(self, data, files, name)
src/dal_alight/widgets.py:166
↓ 4 callersFunction_form
(name, tags, instance=None)
test_project/alight_taggit/test_edge_cases.py:10
↓ 4 callersMethod_get
(self, q='')
test_project/alight_foreign_key/test_units.py:538
↓ 4 callersMethod_get
(self, view_cls, q='', forward=None)
test_project/alight_generic_foreign_key/test_units.py:81
↓ 4 callersFunction_make_view
Return a concrete AlightQuerySetSequenceAutoView subclass.
test_project/alight_generic_foreign_key/test_units.py:19
↓ 4 callersMethod_widget
(self, **kw)
test_project/alight_foreign_key/test_units.py:278
↓ 4 callersMethodclean_label
Given an option text, return the actual label.
src/dal/test/stories.py:85
↓ 4 callersFunctiondalLoadLanguage
(e)
src/dal/static/autocomplete_light/i18n/tk.js:2
↓ 4 callersFunctione
(n,e,t,r)
src/dal/static/autocomplete_light/i18n/sr.js:2
↓ 4 callersMethodget_list
Return the list strings from which to autocomplete.
src/dal_select2/views.py:120
↓ 4 callersMethodget_model
Return either the preset model, either the sender's TestModel.
src/dal/test/utils.py:12
↓ 4 callersMethodget_selected_result_label
Return the label of a selected result.
src/dal/views.py:110
↓ 4 callersFunctionget_tmodel
()
test_project/alight_foreign_key/test_units.py:31
↓ 4 callersMethodget_value
(self, model)
test_project/select2_generic_foreign_key/test_forms.py:14
↓ 4 callersMethodoption_value
(self, value)
src/dal_alight/widgets.py:130
↓ 4 callersMethodraise_invalid_choice
Raise a ValidationError for invalid_choice. The validation error left imprecise about the exact error for security reasons,
src/dal_queryset_sequence/fields.py:33
↓ 3 callersMethodas_url
Return url.
src/dal_queryset_sequence/fields.py:164
↓ 3 callersMethodcreate_option
(self, name)
src/dal/test/stories.py:356
↓ 3 callersMethodcreate_option
Create a unique option from self.model into self.option.
src/dal/test/case.py:116
↓ 3 callersFunctione
(n,e,t,u)
src/dal/static/autocomplete_light/i18n/sr-Cyrl.js:2
↓ 3 callersFunctione
(n,e)
src/dal/static/autocomplete_light/i18n/dsb.js:2
↓ 3 callersFunctione
(n,e,t,i)
src/dal/static/autocomplete_light/i18n/bs.js:2
↓ 3 callersFunctione
(n,e,t,i)
src/dal/static/autocomplete_light/i18n/lt.js:2
↓ 3 callersFunctione
(n,e)
src/dal/static/autocomplete_light/i18n/pl.js:2
↓ 3 callersFunctione
(n,e)
src/dal/static/autocomplete_light/i18n/hsb.js:2
↓ 3 callersMethodfind_option
Incremental sleep until option appeared.
src/dal/test/stories.py:49
↓ 3 callersMethodget_queryset
Filter the queryset with GET['q'].
src/dal/views.py:114
↓ 3 callersMethodget_value
(self, model)
test_project/alight_generic_foreign_key/test_forms.py:14
↓ 3 callersMethodmixup_querysets
Return a queryset with different model types.
src/dal_queryset_sequence/views.py:35
↓ 3 callersFunctionn
(e,n,t,u)
src/dal/static/autocomplete_light/i18n/lv.js:2
↓ 3 callersFunctionn
(e,n)
src/dal/static/autocomplete_light/i18n/cs.js:2
↓ 3 callersMethodready
(self)
test_project/select2_one_to_one/apps.py:10
↓ 3 callersMethodrefresh_autocomplete
Re-open the autocomplete box.
src/dal/test/stories.py:180
↓ 3 callersFunctionselected_tag
()
test_project/tests/test_widgets.py:37
↓ 3 callersFunctiont
(n,e,t,u)
src/dal/static/autocomplete_light/i18n/ru.js:2
↓ 3 callersMethodvalidate
Validate a given text for new option creation. Raise ValidationError or return None.
src/dal/views.py:205
↓ 3 callersMethodwait_script
Wait until all alight web components have finished connectedCallback. autocomplete-select.connectedCallback fires before its child au
src/dal_alight/test.py:64
↓ 2 callersMethod__init__
If any kwarg is None, get it from case attributes.
src/dal/test/stories.py:13
↓ 2 callersMethod_get_language_code
Return language code or None.
src/dal_select2/widgets.py:64
↓ 2 callersMethod_open_and_type
(self, name)
src/dal/test/stories.py:326
↓ 2 callersMethod_parse_item
Return (value, label) for a list item.
src/dal_alight/views.py:139
↓ 2 callersMethod_post
Common POST logic shared by all autocomplete backends. Returns the created object on success, or an HttpResponse for early exits (for
src/dal/views.py:186
↓ 2 callersMethod_should_show_create
(self, context, q)
src/dal/views.py:81
↓ 2 callersMethod_widget
(self, value)
test_project/alight_foreign_key/test_units.py:350
↓ 2 callersMethodaddClear
(choice)
src/dal_alight/static/dal_alight/autocomplete-light.js:515
↓ 2 callersMethodas_urls
Create a list of url patterns, to be called in url.py. Example:: urlpattern.append(*ModelForm.as_url()) Iterat
src/dal/forms.py:138
↓ 2 callersMethodchangeTrigger
()
src/dal_alight/static/dal_alight/autocomplete-light.js:509
↓ 2 callersMethodchoiceUnselect
(choice, noShowHide = false)
src/dal_alight/static/dal_alight/autocomplete-light.js:442
↓ 2 callersMethodclear_option
Clear current option.
src/dal/test/stories.py:223
↓ 2 callersMethodcreate
(self, text)
test_project/alight_list/urls.py:10
↓ 2 callersMethoddraw
()
src/dal_alight/static/dal_alight/autocomplete-light.js:284
↓ 2 callersFunctione
(n,e,t,u)
src/dal/static/autocomplete_light/i18n/uk.js:2
↓ 2 callersFunctione
(n)
src/dal/static/autocomplete_light/i18n/hr.js:2
↓ 2 callersFunctionfindAutocompleteSelect
* Django admin's dismissAddRelatedObjectPopup uses jQuery's $(elem).trigger() * which does NOT fire native addEventListener handlers — it only fire
src/dal_alight/static/dal_alight/dal-django.js:169
↓ 2 callersMethodformat_value
(self, value)
src/dal_alight/widgets.py:133
↓ 2 callersFunctiongetValueOf
(elem)
src/dal/static/autocomplete_light/autocomplete_light.js:383
↓ 2 callersMethodget_content_type_id_object_id
Return a tuple of ctype id, object id for value.
src/dal_queryset_sequence/fields.py:47
↓ 2 callersMethodget_field_label_selector
Return CSS selector for field option label.
src/dal/test/stories.py:59
↓ 2 callersMethodget_field_labels_selector
Return CSS selector for field option label.
src/dal/test/stories.py:368
↓ 2 callersMethodget_item_as_group
Return the item with its group.
src/dal_select2/views.py:188
↓ 2 callersMethodget_list
(self)
src/dal_alight/views.py:136
↓ 2 callersMethodget_object
(self)
test_project/select2_outside_admin/views.py:25
next →1–100 of 702, ranked by callers