Django: Get last primary key for an object.