fix for new related fields in django 1.6