Don't restrict milestone search for drafts to drafts belonging to

group, there are probably going to be some that are not associated at
some point
 - Legacy-Id: 4588
This commit is contained in:
Ole Laursen 2012-07-04 16:45:59 +00:00
parent 1d0ba6c341
commit 0e619af3b3

View file

@ -369,5 +369,5 @@ def reset_charter_milestones(request, acronym):
def ajax_search_docs(request, acronym):
docs = Document.objects.filter(name__icontains=request.GET.get('q',''), group__acronym=acronym, type="draft").order_by('name').distinct()[:20]
docs = Document.objects.filter(name__icontains=request.GET.get('q',''), type="draft").order_by('name').distinct()[:20]
return HttpResponse(json_doc_names(docs), mimetype='application/json')