def post(self, request, **kwargs): transaction_import = self.get_object() resource = StatementLineResource( date_format=transaction_import.date_format, statement_import=transaction_import.hordak_import, ) self.result = resource.import_data( dataset=transaction_import.get_dataset(), dry_run=self.dry_run, use_transactions=True, collect_failed_rows=True, ) return self.get(request, **kwargs)
def makeResource(self): statement_import = StatementImport.objects.create( bank_account=self.account, source="csv" ) return StatementLineResource("%d/%m/%Y", statement_import)
def makeResource(self): statement_import = StatementImport.objects.create(bank_account=self.account) return StatementLineResource('%d/%m/%Y', statement_import)