Change content-type of ajax_get_liaison_info to application/json. Commit ready for merge.

- Legacy-Id: 15450
This commit is contained in:
Ryan Cross 2018-09-12 20:53:53 +00:00
parent f8b107ef5a
commit c6bc55207c
2 changed files with 3 additions and 2 deletions

View file

@ -246,7 +246,7 @@ def ajax_get_liaison_info(request):
'post_only': any(can_post_only)})
json_result = json.dumps(result)
return HttpResponse(json_result, content_type='text/javascript')
return HttpResponse(json_result, content_type='application/json')
def ajax_select2_search_liaison_statements(request):
query = [w.strip() for w in request.GET.get('q', '').split() if w.strip()]

View file

@ -12,7 +12,8 @@ from ietf.person.fields import SearchablePersonsField
# -------------------------------------------------
NUM_SESSION_CHOICES = (('','--Please select'),('1','1'),('2','2'))
LENGTH_SESSION_CHOICES = (('','--Please select'),('1800','30 minutes'),('3600','1 hour'),('5400','1.5 hours'), ('7200','2 hours'),('9000','2.5 hours'))
# LENGTH_SESSION_CHOICES = (('','--Please select'),('1800','30 minutes'),('3600','1 hour'),('5400','1.5 hours'), ('7200','2 hours'),('9000','2.5 hours'))
LENGTH_SESSION_CHOICES = (('','--Please select'),('1800','30 minutes'),('3600','1 hour'),('5400','1.5 hours'), ('7200','2 hours'))
WG_CHOICES = list( Group.objects.filter(type__in=('wg','rg','ag'),state__in=('bof','proposed','active')).values_list('acronym','acronym').order_by('acronym'))
WG_CHOICES.insert(0,('','--Select WG(s)'))