yf_yzl il y a 2 ans
Parent
commit
2695f12548
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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)