URL: <https://savannah.gnu.org/bugs/?65217>
Summary: incorrect variable in method create from class ImagingTestRequest Group: GNU Health Submitter: joseagrc Submitted: Sat 27 Jan 2024 05:03:28 AM UTC Category: Programming / Tracebacks Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Release: None Discussion Lock: Any Module: health_imaging Component: None _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Sat 27 Jan 2024 05:03:28 AM UTC By: joseagrc <joseagrc> we need retrieve test or several test that are saved in variable requested_test not in request... actual code: @classmethod def create(cls, vlist): vlist = [x.copy() for x in vlist] for values in vlist: if not values.get('request'): values['request'] = cls.generate_code() return super(ImagingTestRequest, cls).create(vlist) correct code: @classmethod def create(cls, vlist): vlist = [x.copy() for x in vlist] for values in vlist: if not values.get('requested_test'): values['requested_test'] = cls.generate_code() return super(ImagingTestRequest, cls).create(vlist) _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?65217> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/