yf_yzl 2 年之前
父节点
当前提交
2695f12548
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      apps/Weather/models.py

+ 1 - 1
apps/Weather/models.py

@@ -3,7 +3,7 @@ from django.db import models
 
 class District(models.Model):
 
-    id = models.BigIntegerField("ID", primary_key=True)
+    id = models.AutoField("ID", primary_key=True)
     city_id = models.CharField("城市ID", max_length=64, blank=True, null=True)
     city = models.CharField("城市", max_length=64, blank=True, null=True)
     pid = models.CharField("PID",max_length=64,  blank=True, null=True)