diff --git a/aleksis/core/preferences.py b/aleksis/core/preferences.py index 70cbeab13283da3007b7d067ee3da5487f2c7ad9..6693aff1fba605180b6f83e7741fe1cb005267fe 100644 --- a/aleksis/core/preferences.py +++ b/aleksis/core/preferences.py @@ -155,10 +155,12 @@ class PrimaryGroupField(ChoicePreference): section = account name = "primary_group_field" default = "name" - choices = Person.syncable_fields_choices_lazy() required = False verbose_name = _("Field on person to match primary group against") + def get_choices(self): + return Person.syncable_fields_choices() + @site_preferences_registry.register class SchoolName(StringPreference):