Browse Source

Removing .encode(utf-8) because it shouldnt be there

Alexandre Aubin 7 years ago
parent
commit
288bacf4ca
1 changed files with 2 additions and 2 deletions
  1. 2 2
      coin/billing/models.py

+ 2 - 2
coin/billing/models.py

@@ -569,11 +569,11 @@ def payment_changed(sender, instance, created, **kwargs):
     if created:
         accounting_log.info("Adding payment %s (Date: %s, Member: %s, Amount: %s, Label: %s)."
                             % (instance.pk, instance.date, instance.member,
-                                instance.amount, instance.label.encode('utf-8')))
+                                instance.amount, instance.label))
     else:
         accounting_log.info("Updating payment %s (Date: %s, Member: %s, Amount: %s, Label: %s, Allocated: %s)."
                             % (instance.pk, instance.date, instance.member,
-                                instance.amount, instance.label.encode('utf-8'),
+                                instance.amount, instance.label,
                                 instance.amount_already_allocated()))
 
     # If this payment is related to a member, update the accounting for