django find primary keys of objects from ORM code example Example: django get item by id obj = Class.objects.get(pk=this_object_id)