closes #376 adjust min length before autocompleting schools
authorBryan <btbonval@gmail.com>
Sun, 12 Oct 2014 17:26:38 +0000 (13:26 -0400)
committerBryan <btbonval@gmail.com>
Sun, 12 Oct 2014 17:26:38 +0000 (13:26 -0400)
karmaworld/apps/courses/forms.py

index f46d028ef96fadade1f5697126fa5b4ef587346d..b15549bfc8f79c8a66609a488a0458e3ca17fcb1 100644 (file)
@@ -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 <span class="required-field">(required)</span>'))
     # first argument is ajax channel name, defined in models as LookupChannel.
     name = AutoCompleteDependentSelectField(