mirror of
https://github.com/daniviga/bite.git
synced 2024-11-26 14:56:13 +01:00
Remove Django 3.2 warnings
This commit is contained in:
parent
f958692350
commit
37c7c49614
18
bite/telemetry/migrations/0003_alter_telemetry_id.py
Normal file
18
bite/telemetry/migrations/0003_alter_telemetry_id.py
Normal 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),
|
||||||
|
),
|
||||||
|
]
|
|
@ -30,6 +30,7 @@ def telemetry_validation(value):
|
||||||
|
|
||||||
|
|
||||||
class Telemetry(models.Model):
|
class Telemetry(models.Model):
|
||||||
|
id = models.AutoField(primary_key=True)
|
||||||
device = models.ForeignKey(Device, on_delete=models.CASCADE)
|
device = models.ForeignKey(Device, on_delete=models.CASCADE)
|
||||||
time = models.DateTimeField(db_index=True, auto_now_add=True)
|
time = models.DateTimeField(db_index=True, auto_now_add=True)
|
||||||
transport = models.CharField(max_length=4,
|
transport = models.CharField(max_length=4,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user