', symmetrical=False))Error: One or more models did not validate:
auth.user: Accessor for m2mfield 'following' clashes with related m2m field 'User.followers'.auth.user: Reverse query name for m2m field 'following' clashes with
field 'house_blocks' clashes with related m2m field 'Block.shopbuilding_set'.field 'house_blocks' clashes with related m2m field 'Block.shopbuilding_set'.'npc_blocks' clashes with related m2m field 'Block.shopbuilding_
field 'groups' clashes with related m2m field 'Group.user_set'.Add a related_name argument to the definition for 'groups'.
adminka.shopuser: Accessor for m2m field'user_permissions' clashes with related m2m field 'Permission.use
我正在尝试将M2M字段修改为ForeignKey字段。ValueError: Cannot alter field xxx into yyy they are not compatible types (you cannot alter to or from M2Mfields, or add or remove through= on M2M fields)
所以我不能进行迁移。
鉴于下面的模型,我如何找到对象谁的“天”字段有今天。基本上,给我看看那些有一天工作的人。例如“‘Wed”。model.py day = models.CharField(max_length=3) return "%s"%(self.day)
name = models.CharField(max_length=32, unique=True)