crucialfelix/django-ajax-selects — comment on commit e91b17c79f0b0903382863841cb435979dac2cb7
File:  line 0
By crucialfelix:

I checked through and autocompletehtml isn't called twice. it used to be called in the template, but that I removed that.

I cleaned up the vestigal arguments (I was trying to shrink the code a bit more with a full init).

I very much like the position thing. because of the markup in the Django admin there is no div around all the form elements, so they are not positioned together. you have to apply the same css to anything over there to get it to stay over there. the ajax_selects.css should just be about formatting and styling the auto complete elements, it should not be dependent or assume in what environment it is. if its in the admin then it needs to be positioned somehow to be below the text field. I cannot think of a situation where anybody would place the deck area at any place other than below the input text field.

I do want in the future to offer a different handler option for people that don't want to show it on the deck. on version is to keep the text in the text field but style it to look like an object. another is to fade the text field out and replace it with the selected item. click delete to turn it back into a text field.