Skip to content

Commit

Permalink
fix(esn-accounts): flipped section logic about new section creation
Browse files Browse the repository at this point in the history
  • Loading branch information
thejoeejoee committed Dec 18, 2023
1 parent 78c6074 commit 3fa71c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fiesta/apps/esnaccounts/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ def update_section_membership(
# national_section = sa.extra_data.get("country")

section, is_section_new = Section.objects.get_or_create(
name=section_name,
code=section_code,
defaults=dict(
code=section_code,
name=section_name,
# TODO: definitely not, user nationality != section assignment
country=user_nationality,
space_slug=slugify(section_name).lower().replace("-", ""),
Expand Down

0 comments on commit 3fa71c8

Please sign in to comment.