def group():

    def prep(r):
        # Make the team status visible in list/read views
        if r.interactive or r.representation == "aadata":
            resource = r.resource
            list_fields = ["name",
                           "description",
                           "team_status_team.status_id",
                           "comments",
                           ]
            resource.configure(list_fields = list_fields)
        if r.interactive:
            from s3 import S3SQLCustomForm, S3SQLInlineComponent
            crud_fields = ["name",
                           "description",
                           S3SQLInlineComponent("team_status_team",
                                                fields = [("", "status_id")],
                                                label = T("Status"),
                                                multiple = False,
                                                ),
                           "comments",
                           ]
            crud_form = S3SQLCustomForm(*crud_fields)
            r.resource.configure(crud_form = crud_form)
        return True
    s3.prep = prep

    return s3_rest_controller("pr", "group")

# -----------------------------------------------------------------------------
Pre-populate formset with the initial placeholders to display.
dataset/ETHPy150Open sahana/eden/controllers/event.py/group--crossover with--dataset/ETHPy150Open edoburu/django-fluent-contents/fluent_contents/admin/placeholdereditor.py/PlaceholderEditorInline.get_formset