(model)
return fieldsets
fieldsets are optional, they are defined in the Model.
fieldsets are optional, they are defined in the Model.
fieldsets are optional they are defined in the Model .
def get_fieldsets(model):
    """ fieldsets are optional, they are defined in the Model.
    """
    fieldsets = getattr(model, 'report_builder_fieldsets', None)
    if fieldsets:
        for fieldset_name, fieldset_dict in model.report_builder_fieldsets:
            fieldset_string_to_field(fieldset_dict, model)
    return fieldsets
def get_fieldsets ( model ) : fieldsets = getattr ( model , 'report_builder_fieldsets' , None ) if fieldsets : for fieldset_name , fieldset_dict in model . report_builder_fieldsets : fieldset_string_to_field ( fieldset_dict , model ) return fieldsets