forked from erp-dev/erp
feat: agent api complete
This commit is contained in:
18
shipment/migrations/0021_geo_coordinates.py
Normal file
18
shipment/migrations/0021_geo_coordinates.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.2.8 on 2026-04-14 11:08
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('shipment', '0020_salesitem_merge_remark'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='shipment',
|
||||
name='geo_coordinates',
|
||||
field=models.JSONField(blank=True, help_text='由 Geo 系统返回的坐标信息,结构由调用方决定,后端不作校验', null=True, verbose_name='地理坐标'),
|
||||
),
|
||||
]
|
||||
@@ -197,7 +197,14 @@ class Shipment(ModelBase):
|
||||
related_name='created_shipments',
|
||||
verbose_name='创建人'
|
||||
)
|
||||
|
||||
|
||||
geo_coordinates = models.JSONField(
|
||||
null=True,
|
||||
blank=True,
|
||||
verbose_name='地理坐标',
|
||||
help_text='由 Geo 系统返回的坐标信息,结构由调用方决定,后端不作校验',
|
||||
)
|
||||
|
||||
class Meta:
|
||||
db_table = 'shipment'
|
||||
verbose_name = '出货单'
|
||||
|
||||
Reference in New Issue
Block a user