From: Bryan Date: Sun, 12 Oct 2014 17:26:38 +0000 (-0400) Subject: closes #376 adjust min length before autocompleting schools X-Git-Tag: release-20150131~19 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1e6e409b355aac1b9030bf797ee0f43bc37a6ac7;p=oweals%2Fkarmaworld.git closes #376 adjust min length before autocompleting schools --- diff --git a/karmaworld/apps/courses/forms.py b/karmaworld/apps/courses/forms.py index f46d028..b15549b 100644 --- a/karmaworld/apps/courses/forms.py +++ b/karmaworld/apps/courses/forms.py @@ -85,6 +85,7 @@ class DepartmentForm(NiceErrorModelForm, ACFieldModelForm): # first argument is ajax channel name, defined in models as LookupChannel. school = AutoCompleteSelectField('school_object_by_name', help_text='', + plugin_options={'minLength': 3}, label=mark_safe('School (required)')) # first argument is ajax channel name, defined in models as LookupChannel. name = AutoCompleteDependentSelectField(