Browse Source

Use Django 3.1

pull/409/head
Pēteris Caune 4 years ago
parent
commit
750b96c374
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
4 changed files with 31 additions and 3 deletions
  1. +5
    -0
      CHANGELOG.md
  2. +23
    -0
      hc/api/migrations/0075_auto_20200805_1004.py
  3. +2
    -2
      hc/api/models.py
  4. +1
    -1
      requirements.txt

+ 5
- 0
CHANGELOG.md View File

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


+ 23
- 0
hc/api/migrations/0075_auto_20200805_1004.py View File

@ -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),
),
]

+ 2
- 2
hc/api/models.py View File

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


+ 1
- 1
requirements.txt View File

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


Loading…
Cancel
Save