4๐
jj_choice = {
'็ถ': '็ถ',
'ๅ
': 'ๅ
',
'็': '็',
}
should be written as,
jj_choice = (
('็ถ', '็ถ'),
('ๅ
', 'ๅ
'),
('็', '็'),
)
key,text tuples.
๐คdurdenk
0๐
you have
return render(request, 'medicine/add.html', {'form': form},)
you need
return render(request, 'medicine/add.html', {'form': form})
,
at the end makes it tuple
๐คdoniyor
- [Django]-Django Application: Foreign Key pointing to an abstract class
- [Django]-Set AUTOINCREMENT value in django table
- [Django]-Django foreign key reference from another model
Source:stackexchange.com