fixed bad bug, made worse
This commit is contained in:
parent
a891b7caed
commit
223c69ddd1
@ -21,7 +21,7 @@ class Migration(models.Model):
|
||||
|
||||
def print_missed_migrations(self):
|
||||
now = timezone.now()
|
||||
return now - datetime.timedelta(days=1) <= self.booked_time <= now
|
||||
return now + datetime.timedelta(days=1) >= self.booked_time >= now
|
||||
print_missed_migrations.admin_order_field = 'booked_time'
|
||||
print_missed_migrations.boolean = True
|
||||
print_missed_migrations.short_description = "Was this migration missed?"
|
||||
|
||||
Reference in New Issue
Block a user