1👍
Probably, your row doesn’t contains int’s.
To fix it, just try:
st_data = Student.objects.get(id=int(st_id))
Source:stackexchange.com
1👍
Probably, your row doesn’t contains int’s.
To fix it, just try:
st_data = Student.objects.get(id=int(st_id))