1
0
mirror of https://github.com/daniviga/bite.git synced 2024-11-22 21:16:12 +01:00

Remove Django 3.2 warnings

This commit is contained in:
Daniele Viganò 2021-10-02 18:41:19 +02:00
parent f958692350
commit 37c7c49614
Signed by: dani
GPG Key ID: DB49AFC03C40EE02
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 3.2.7 on 2021-09-03 09:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('telemetry', '0002_timescale'),
]
operations = [
migrations.AlterField(
model_name='telemetry',
name='id',
field=models.AutoField(primary_key=True, serialize=False),
),
]

View File

@ -30,6 +30,7 @@ def telemetry_validation(value):
class Telemetry(models.Model):
id = models.AutoField(primary_key=True)
device = models.ForeignKey(Device, on_delete=models.CASCADE)
time = models.DateTimeField(db_index=True, auto_now_add=True)
transport = models.CharField(max_length=4,