SyntaxFix
Write A Post
Hire A Developer
Questions
It can be like this
obj = model.objects.filter(id=emp_id)[0]
or
obj = model.objects.latest('id')