diff --git a/cotisations/payment_utils/comnpay.py b/cotisations/payment_utils/comnpay.py index dcf7e22a..ad0d8c77 100644 --- a/cotisations/payment_utils/comnpay.py +++ b/cotisations/payment_utils/comnpay.py @@ -62,8 +62,8 @@ class Payment(): ret = "" for key in array_tpe: ret += ''.format( - 'k'=key, - 'v'=array_type[key] + k=key, + v=array_type[key] ) return ret diff --git a/machines/models.py b/machines/models.py index 361c7bc1..e3024578 100644 --- a/machines/models.py +++ b/machines/models.py @@ -592,7 +592,7 @@ class Mx(RevMixin, AclMixin, models.Model): fichiers de zones""" return "@ IN MX {prior} {name}".format( prior=str(self.priority).ljust(3), - name=str(name) + name=str(self.name) ) def __str__(self):