Compare commits

...

2 Commits

Author SHA1 Message Date
benjamyn
d956f1aa52 added mysqlclient and djangorestframework
to reuirements
2020-10-20 00:59:52 -04:00
benjamyn
223c69ddd1 fixed bad bug, made worse 2020-10-20 00:59:30 -04:00
3 changed files with 5 additions and 3 deletions

View File

@ -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?"

View File

@ -1,7 +1,7 @@
{% if latest_migrations %}
<ul>
{% for migration in latest_migrations %}
<li><a href=>{{ migration.booked_time }}, {{ migration.migration_status }}</a></li>
<li><a href=>{{ migration.booked_time }}, {{ migration.migration_status }}, {{ migration.domain }}</a></li>
{% endfor %}
</ul>
{% else %}

View File

@ -1 +1,3 @@
django
django
django-rest-framework
mysqlclient