Commits

Mark Lavin committed 5cac2de

Update example project to not use removed fields.

Comments (0)

Files changed (2)

example/core/admin.py

 
 
 class FarmAdminForm(forms.ModelForm):
-    owner = selectable.AutoComboboxSelectField(lookup_class=OwnerLookup, allow_new=True)
+    owner = selectable.AutoCompleteSelectField(lookup_class=OwnerLookup, allow_new=True)
 
     class Meta(object):
         model = Farm

example/core/forms.py

         label='Select a fruit (AutoCompleteField which allows new items)',
         required=False,
     )
-    # AutoComboboxSelectField (no new items)
-    comboboxselect = selectable.AutoComboboxSelectField(
+    # AutoCompleteSelectField (no new items)
+    comboboxselect = selectable.AutoCompleteSelectField(
         lookup_class=FruitLookup,
-        label='Select a fruit (AutoComboboxSelectField)',
+        label='Select a fruit (AutoCompleteSelectField with combobox)',
         required=False,
+        widget=selectable.AutoComboboxSelectWidget
     )
-    # AutoComboboxSelectField (allows new items)
-    newcomboboxselect = selectable.AutoComboboxSelectField(
+    # AutoComboboxSelect (allows new items)
+    newcomboboxselect = selectable.AutoCompleteSelectField(
         lookup_class=FruitLookup,
         allow_new=True,
-        label='Select a fruit (AutoComboboxSelectField which allows new items)',
+        label='Select a fruit (AutoCompleteSelectField with combobox which allows new items)',
         required=False,
+        widget=selectable.AutoComboboxSelectWidget
     )
     # AutoCompleteSelectMultipleField
     multiautocompleteselect = selectable.AutoCompleteSelectMultipleField(
         required=False,
     )
     # AutoComboboxSelectMultipleField
-    multicomboboxselect = selectable.AutoComboboxSelectMultipleField(
+    multicomboboxselect = selectable.AutoCompleteSelectMultipleField(
         lookup_class=FruitLookup,
-        label='Select a fruit (AutoComboboxSelectMultipleField)',
+        label='Select a fruit (AutoCompleteSelectMultipleField with combobox)',
         required=False,
+        widget=selectable.AutoComboboxSelectMultipleWidget
     )
 
 
 class ChainedForm(forms.Form):
-    city = selectable.AutoComboboxSelectField(
+    city = selectable.AutoCompleteSelectField(
         lookup_class=CityLookup,
         label='City',
         required=False,
+        widget=selectable.AutoComboboxSelectWidget
     )
     state = USStateField(widget=USStateSelect, required=False)
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.