# update weather station

Signed-off-by: mihello <xianfuxing@126.com>
This commit is contained in:
mihello 2022-11-30 07:16:08 +00:00 committed by Gitee
parent 5b6c987937
commit a477d1cc64
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 31 additions and 2 deletions

View File

@ -0,0 +1,31 @@
# Generated by Django 2.2.4 on 2022-11-30 06:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mosquito', '0019_auto_20221130_1035'),
]
operations = [
migrations.CreateModel(
name='WeatherStationInfo',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('device_id', models.CharField(max_length=100, unique=True, verbose_name='气象台ID')),
('device_name', models.CharField(blank=True, max_length=100, null=True, verbose_name='气象台名称')),
('longitude', models.FloatField(blank=True, null=True, verbose_name='经度')),
('latitude', models.FloatField(blank=True, null=True, verbose_name='维度')),
('location_id', models.CharField(blank=True, max_length=100, null=True, verbose_name='地理位置IDLU')),
('point_x', models.FloatField(blank=True, null=True, verbose_name='POINT_XLU')),
('point_y', models.FloatField(blank=True, null=True, verbose_name='POINT_YLU')),
('org', models.ForeignKey(on_delete='PROTECT', to='mosquito.Org', verbose_name='所在组织')),
],
options={
'verbose_name': '气象台设备',
'verbose_name_plural': '气象台设备',
},
),
]

View File

@ -133,8 +133,6 @@ class WeatherStationInfo(models.Model):
point_y = models.FloatField(blank=True, null=True, verbose_name='POINT_YLU')
class Meta:
managed = False
db_table = 'weather_station_info'
verbose_name = '气象台设备'
verbose_name_plural = verbose_name