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

Add missing .all()

parent cc504b7f
No related branches found
No related tags found
1 merge request!248Resolve "Allow matching primary groups on arbitrary field"
Pipeline #1954 passed with warnings
...@@ -326,7 +326,7 @@ class PersonGroupThrough(ExtensibleModel): ...@@ -326,7 +326,7 @@ class PersonGroupThrough(ExtensibleModel):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)
for field in self.group.additional_fields: for field in self.group.additional_fields.all():
field_class = getattr(jsonstore, field.field_type) field_class = getattr(jsonstore, field.field_type)
field_name = slugify(field.title).replace("-", "_") field_name = slugify(field.title).replace("-", "_")
field_instance = field_class(verbose_name=field.title) field_instance = field_class(verbose_name=field.title)
......
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