crucialfelix/django-ajax-selects — pull request #20 by goinnn (2012-07-16 13:49:40+00:00)
Title: More versatile the auto complete fields

Now you can to do something like this:

self.field['my_field'] = AutoCompleteField('my_chanel', label=_('My label'), extra_params_url={'user': user.pk, 'XXX': 'XXX'})

With this param (extra_params_url), the ajax request will be something like this:

/lookups/ajax_lookup/my_chanel?user=1&XXX=XXX&term=SOMETHING

And also something like this:
self.field['my_field'] = AutoCompleteField('my_chanel', label=_('My label'), extra_context={'XXX': 'XXX', 'YYY': 'YYY'})

With this param (extra_context), we will have available this variables (XXX and YYY) with render the widget