Compare commits
No commits in common. "d956f1aa52dda51f837124cad9fd7556bf65d341" and "a891b7caedd593945cd207de70fccce4c1828345" have entirely different histories.
d956f1aa52
...
a891b7caed
@ -21,7 +21,7 @@ class Migration(models.Model):
|
|||||||
|
|
||||||
def print_missed_migrations(self):
|
def print_missed_migrations(self):
|
||||||
now = timezone.now()
|
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.admin_order_field = 'booked_time'
|
||||||
print_missed_migrations.boolean = True
|
print_missed_migrations.boolean = True
|
||||||
print_missed_migrations.short_description = "Was this migration missed?"
|
print_missed_migrations.short_description = "Was this migration missed?"
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{% if latest_migrations %}
|
{% if latest_migrations %}
|
||||||
<ul>
|
<ul>
|
||||||
{% for migration in latest_migrations %}
|
{% for migration in latest_migrations %}
|
||||||
<li><a href=>{{ migration.booked_time }}, {{ migration.migration_status }}, {{ migration.domain }}</a></li>
|
<li><a href=>{{ migration.booked_time }}, {{ migration.migration_status }}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
@ -1,3 +1 @@
|
|||||||
django
|
django
|
||||||
django-rest-framework
|
|
||||||
mysqlclient
|
|
||||||
Reference in New Issue
Block a user