From 1e6e409b355aac1b9030bf797ee0f43bc37a6ac7 Mon Sep 17 00:00:00 2001 From: Bryan Date: Sun, 12 Oct 2014 13:26:38 -0400 Subject: [PATCH] closes #376 adjust min length before autocompleting schools --- karmaworld/apps/courses/forms.py | 1 + 1 file changed, 1 insertion(+) 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( -- 2.25.1