def application_versions_json(request): app_id = request.POST['application_id'] form = QueueSearchForm() return {'choices': form.version_choices_for_app_id(app_id)}