摘要: django 关于model id:Automatic primary key fieldsBy default, Django gives each model the following field:id = models.AutoField(primary_key=True)This is an auto-incrementing primary key.If you’d like to specify a custom primary key, just specify primary_key=True on one of your fields. If Django sees you 阅读全文
posted @ 2014-04-05 14:08 大漠小雨 阅读(199) 评论(0) 推荐(0) 编辑