Skip to content

Commit

Permalink
rework
Browse files Browse the repository at this point in the history
  • Loading branch information
codiebeulaine committed Jul 6, 2023
1 parent 6da4ee2 commit 34e6643
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions home/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ def render_basic(self, value, context=None):

def get_valid_profile_values(field):
site = Site.objects.get(is_default_site=True)
site_settins, _ = SiteSettings.objects.get_or_create(site=site)
site_settings, _ = SiteSettings.for_site(site)

profile_values = {}

for profile_block in site.sitesettings.profile_field_options:
for profile_block in site_settings.profile_field_options:
profile_values[profile_block.block_type] = [b for b in profile_block.value]
try:
return profile_values[field]
Expand Down

0 comments on commit 34e6643

Please sign in to comment.