Пример #1
0
    def get_models_to_save(self):
        processor = FormProcessorInterface(domain=self.domain).ledger_processor
        ledger_db = LedgerDB(processor=processor)
        update_results = []

        for stock_report_helper in self.stock_report_helpers:
            this_result = processor.get_models_to_update(stock_report_helper, ledger_db)
            if this_result:
                update_results.append(this_result)
        return update_results