问题描述
|
这是我得到的错误。
auth.permission: Accessor for field \'content_type\' clashes with related field \'ContentType.permission_set\'. Add a related_name argument to the definition for \'content_type\'.
permissions.permission: Accessor for field \'table\' clashes with related field \'ContentType.permission_set\'. Add a related_name argument to the definition for \'table\'.
这是我的模型。
from django.contrib.gis.db import models
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from maps.models import Sdr_Layer
class Permission(models.Model):
user = models.ForeignKey(User)
table = models.ForeignKey(ContentType)
permi = models.IntegerField()
有人可以向我解释错误的含义以及如何消除错误吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)