try:
version_number = request.json['version_number']
name = request.json['dispensary_name']
name = str(name)
if version_number == 1.0:
if Dispensary.objects.filter(name__iexact=name).exists():
return {SUCCESS: False, MESSAGE: 'Dispensary name already exists.'}
不匹配其中有空格的名称。我该怎么办呢。