2ff48df0653f424da4756786756fbfa94e58bc75,modules/s3db/dvr.py,DVRResponseModel,model,#DVRResponseModel#,1400
Before Change
ondelete = "RESTRICT",
represent = represent,
requires = IS_EMPTY_OR(
IS_ONE_OF(db,
"%s.id" % tablename,
represent,
multiple = True,
)),
sortby = "name",
widget = S3MultiSelectWidget(header = False,
),
After Change
multiple = True,
translate = True,
)
requires = IS_ONE_OF(db, "%s.id" % tablename,
represent,
multiple = True,
)
if settings.get_dvr_response_themes_org_specific():
root_org = current.auth.root_org()
if root_org:
requires.set_filter(filterby = "organisation_id",
filter_opts = (root_org,),
)
response_theme_ids = S3ReusableField(
"response_theme_ids",
"list:reference %s" % tablename,
label = T("Themes"),
ondelete = "RESTRICT",
represent = represent,
requires = IS_EMPTY_OR(requires),
sortby = "name",
widget = S3MultiSelectWidget(header = False,
),
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: sahana/eden
Commit Name: 2ff48df0653f424da4756786756fbfa94e58bc75
Time: 2018-04-11
Author: dominic@nursix.org
File Name: modules/s3db/dvr.py
Class Name: DVRResponseModel
Method Name: model
Project Name: sahana/eden
Commit Name: 8508994b69156c0f93b7914802ea92b7aebe306b
Time: 2020-01-27
Author: dominic@nursix.org
File Name: modules/s3db/fin.py
Class Name: FinProductModel
Method Name: model
Project Name: sahana/eden
Commit Name: 0bd29a01b03b3ece8033467e484c9d66e94f452a
Time: 2020-05-04
Author: fran@aidiq.com
File Name: modules/s3db/supply.py
Class Name: S3SupplyDistributionModel
Method Name: model