Élie Bouttier il y a 7 ans
Parent
commit
5b21cbe4db
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      banking/models.py

+ 1 - 1
banking/models.py

@@ -49,7 +49,7 @@ class RecurringPayment(models.Model):
 
 
     @property
     @property
     def current(self):
     def current(self):
-        return self.updates.last()
+        return self.updates.first()
 
 
     def is_active(self):
     def is_active(self):
         return self.current and self.current.payment_method != PaymentUpdate.STOP
         return self.current and self.current.payment_method != PaymentUpdate.STOP