标签:
id = models.IntegerField(primary_key = True)
附:
id = meta.AutoField(‘ID‘, primary_key=True) primary_key=True implies blank=False, null=False and unique=True. Only one primary key is allowed on an object.
标签:
原文地址:http://www.cnblogs.com/Blaxon/p/4415246.html