Skip to content

Commit

Permalink
Merge branch 'hotfix/generic-import' into fix/220846-Access-denied-an…
Browse files Browse the repository at this point in the history
…d-gray-page-on-access-household-through-rdi
  • Loading branch information
domdinicola committed Nov 5, 2024
2 parents 3836afb + 01a317a commit cc39f88
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,10 @@ def create_household_data(
"country": str(Country.objects.get(iso_code2=mapping["defaults"][COUNTRY]).pk),
"consent": True,
"collect_individual_data": YES,
"size": len(record_data_dict[individuals_key]),
"flex_fields": flex_fields,
}
if "size" not in household_data:
household_data["size"] = len(record_data_dict[individuals_key])
return self._create_object_and_validate(household_data, PendingHousehold)

def create_individuals(
Expand Down

0 comments on commit cc39f88

Please sign in to comment.