标签: django python-2.7 django-models
如何在Django模型的自引用ForeignKey字段中设置默认值?
$offset = $this->uri->segment(4);
在保存时不通知母版会发生以下错误
class MyModel(models.Model): id = models.IntegerField(primary_key=True) name = models.CharField('') master = models.ForeignKey('self', default=None)