Skip to content
Snippets Groups Projects
Verified Commit cc504b7f authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Use lazy wrapper for preferences

parent b24c07fa
No related branches found
No related tags found
1 merge request!248Resolve "Allow matching primary groups on arbitrary field"
Pipeline #1949 passed with warnings
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment