How to read the primary key of a ForeignKey without loading the corresponding item? You don't need to go via the dict: b.a_id works fine.