You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've got some minor problem using templated classes.
When registering an AutocompleteModelTemplate eg:
autocomplete_light.register(LocalUser,
autocomplete_light.AutocompleteModelTemplate,
# Just like in ModelAdmin.search_fieldssearch_fields=['^givenName', 'sn', 'uid', 'displayName'],
# This will actually html attribute data-placeholder which will set# javascript attribute widget.autocomplete.placeholder.autocomplete_js_attributes={'minimum_characters': 1,
},
)
(maybe related to #255)
Hi, I've got some minor problem using templated classes.
When registering an AutocompleteModelTemplate eg:
html response from /autocomplete/ url will be:
the quickest fix is to override template with something similar:
spaceless will do the rest, producing a cleaner:
This produce better output while maintaining good code readability, and does not break existing javascript
Many thanks for this package, it's great !
ciao,
ale
The text was updated successfully, but these errors were encountered: