def Deal_Target_Tbl_dict return_data for item in Deal_Target_Tbl objec

1
2
3
4
5
6
def Deal_Target_Tbl_dict():
return_data = []
for item in Deal_Target_Tbl.objects.all():
return_data.append([item.id, item.txt])
return_data.append(['-1', 'Другое'])
return return_data