From 94d9cfb4607bca52be751755be178c388958b107 Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 12 Apr 2018 17:10:19 +0300 Subject: [PATCH] finance logging --- finance/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/finance/models.py b/finance/models.py index 98d749c..5849def 100755 --- a/finance/models.py +++ b/finance/models.py @@ -94,7 +94,7 @@ class InvoiceRebilling(Invoice): rebilling_on = models.BooleanField(verbose_name='Повторять платеж', default=False, editable=False) def create_child_pays(self, count): - for idx in range(count-1): + for idx in range(int(count)-1): InvoiceRebilling.objects.create( bill=self.bill, comment=self.comment,