I got a list problem:
position = self.request.POST.getlist('position')
status = self.request.POST.getlist('tooth')
a = dict((i, j) for i, j in zip(position, status) if j != '')
print(a)
{'14': 'status1', '15': 'status2', '13': 'status3'}
Is it possible to achieve format result like:
{'14': [status1], [15]: [status2], [13]: [status3]}
Please.