e6b8a2c1b68c7c5a9777ec19e8fbecc51e749a93,modules/s3db/fin.py,FinPaymentServiceModel,defaults,#,279
Before Change
Return safe defaults in case the model has been deactivated.
dummy = S3ReusableField("dummy_id", "integer",
readable = False,
writable = False,
)
return {"fin_service_id": lambda **attr: dummy("service_id"),
}
After Change
Return safe defaults in case the model has been deactivated.
return {"fin_service_id": S3ReusableField.dummy("service_id") ,
}
// =============================================================================
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: sahana/eden
Commit Name: e6b8a2c1b68c7c5a9777ec19e8fbecc51e749a93
Time: 2020-01-23
Author: dominic@nursix.org
File Name: modules/s3db/fin.py
Class Name: FinPaymentServiceModel
Method Name: defaults
Project Name: sahana/eden
Commit Name: 53922f5419cb4707bf7a3cc77c0888729055a309
Time: 2020-04-23
Author: dominic@nursix.org
File Name: modules/s3db/hrm.py
Class Name: S3HRSkillModel
Method Name: defaults
Project Name: sahana/eden
Commit Name: e6b8a2c1b68c7c5a9777ec19e8fbecc51e749a93
Time: 2020-01-23
Author: dominic@nursix.org
File Name: modules/s3db/fin.py
Class Name: FinExpensesModel
Method Name: defaults
Project Name: sahana/eden
Commit Name: 53922f5419cb4707bf7a3cc77c0888729055a309
Time: 2020-04-23
Author: dominic@nursix.org
File Name: modules/s3db/hrm.py
Class Name: S3HRShiftModel
Method Name: defaults