# update weather station
Signed-off-by: mihello <xianfuxing@126.com>
This commit is contained in:
parent
5b6c987937
commit
a477d1cc64
|
@ -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='地理位置ID(LU)')),
|
||||
('point_x', models.FloatField(blank=True, null=True, verbose_name='POINT_X(LU)')),
|
||||
('point_y', models.FloatField(blank=True, null=True, verbose_name='POINT_Y(LU)')),
|
||||
('org', models.ForeignKey(on_delete='PROTECT', to='mosquito.Org', verbose_name='所在组织')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': '气象台设备',
|
||||
'verbose_name_plural': '气象台设备',
|
||||
},
|
||||
),
|
||||
]
|
|
@ -133,8 +133,6 @@ class WeatherStationInfo(models.Model):
|
|||
point_y = models.FloatField(blank=True, null=True, verbose_name='POINT_Y(LU)')
|
||||
|
||||
class Meta:
|
||||
managed = False
|
||||
db_table = 'weather_station_info'
|
||||
verbose_name = '气象台设备'
|
||||
verbose_name_plural = verbose_name
|
||||
|
||||
|
|
Loading…
Reference in New Issue