fixes invalid 'is_older' method on EnregistrementRecursif
This commit is contained in:
@@ -104,8 +104,9 @@ class EnregistrementRecursif(models.Model):
|
||||
ordering = ('jour',)
|
||||
|
||||
def is_older(self, month, year):
|
||||
return (self.created_date.month <= month
|
||||
and self.created_date.year <= year)
|
||||
return (self.created_date.year < year
|
||||
or (self.created_date.month < month
|
||||
and self.created_date.year == year))
|
||||
|
||||
def spawn(self, month, year, commit=True):
|
||||
""" Spawn a new Enregistrement for given month and year. """
|
||||
|
||||
Reference in New Issue
Block a user