Skip to content

Commit

Permalink
Fix Portal Serializer typo (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
vcai122 authored Nov 8, 2024
1 parent 96a605c commit f106b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/portal/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def is_valid(self, *args, **kwargs):
self.initial_data["target_populations"] = list(
(
map(int, self.initial_data["target_populations"].split(","))
if "target_populations" in self.initial_data
if self.initial_data.get("target_populations", "") != ""
else []
),
)
Expand Down

0 comments on commit f106b9b

Please sign in to comment.