复制派生模型(包括基本模型的完整副本)的正确方法是什么?
class Item(models.Model):
uid = models.AutoField(primary_key=True, editable=False)
f = models.BooleanField(default=False)
class Derived(Item):
pass
以下内容无效:
derived = Derived.objects.create()
derived.pk = None
derived.save()