From 750b96c374372c9ffe7884f1e312074b3c1a92c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Wed, 5 Aug 2020 13:11:39 +0300 Subject: [PATCH] Use Django 3.1 --- CHANGELOG.md | 5 +++++ hc/api/migrations/0075_auto_20200805_1004.py | 23 ++++++++++++++++++++ hc/api/models.py | 4 ++-- requirements.txt | 2 +- 4 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 hc/api/migrations/0075_auto_20200805_1004.py diff --git a/CHANGELOG.md b/CHANGELOG.md index bfad69c3..7eb642c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # Changelog All notable changes to this project will be documented in this file. +## v1.17.0-dev - Unreleased + +## Improvements +- Django 3.1 + ## v1.16.0 - 2020-08-04 ### Improvements diff --git a/hc/api/migrations/0075_auto_20200805_1004.py b/hc/api/migrations/0075_auto_20200805_1004.py new file mode 100644 index 00000000..18889b17 --- /dev/null +++ b/hc/api/migrations/0075_auto_20200805_1004.py @@ -0,0 +1,23 @@ +# Generated by Django 3.1 on 2020-08-05 10:04 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('api', '0074_auto_20200803_1411'), + ] + + operations = [ + migrations.AlterField( + model_name='check', + name='last_ping_was_fail', + field=models.BooleanField(default=False), + ), + migrations.AlterField( + model_name='check', + name='manual_resume', + field=models.BooleanField(default=False), + ), + ] diff --git a/hc/api/models.py b/hc/api/models.py index 83a9a83f..01a98882 100644 --- a/hc/api/models.py +++ b/hc/api/models.py @@ -78,13 +78,13 @@ class Check(models.Model): subject = models.CharField(max_length=100, blank=True) subject_fail = models.CharField(max_length=100, blank=True) methods = models.CharField(max_length=30, blank=True) - manual_resume = models.NullBooleanField(default=False) + manual_resume = models.BooleanField(default=False) n_pings = models.IntegerField(default=0) last_ping = models.DateTimeField(null=True, blank=True) last_start = models.DateTimeField(null=True, blank=True) last_duration = models.DurationField(null=True, blank=True) - last_ping_was_fail = models.NullBooleanField(default=False) + last_ping_was_fail = models.BooleanField(default=False) has_confirmation_link = models.BooleanField(default=False) alert_after = models.DateTimeField(null=True, blank=True, editable=False) status = models.CharField(max_length=6, choices=STATUSES, default="new") diff --git a/requirements.txt b/requirements.txt index 15519b22..1c659329 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ cron-descriptor==1.2.24 croniter==0.3.31 -Django==3.0.8 +Django==3.1 django-compressor==2.4 psycopg2==2.8.4 pytz==2020.1