您好我的Spinner和AutocompleteTextView有问题。 现在我的微调器只显示以例如字母“k”开头的项目。我想从列表中删除所有项目。可能吗? 下面是我的MainActivity和我的问题图片。
感谢。
def search(request):
if request.method == 'GET':
if request.GET.get("submit_search_button"): # if search submit button clicked
query_string = ''
found_entries = None
if ('q' in request.GET) and request.GET['q'].strip():
query_string = request.GET['q']
entry_query = get_query(query_string, ['name', 'email','city','country','dept'])
found_entries = Techstop.objects.filter(entry_query)
return render_to_response('search.html',
{ 'query_string': query_string, 'found_entries': found_entries },
context_instance=RequestContext(request))
return HttpResponseNotAllowed('only GET here for example!!')