我的模型中有一个字段:
class Article( models.Model ):
title = models.CharField("Title", max_length=255)
related_articles = models.ManyToManyField('self')
class Article_Admin(admin.ModelAdmin):
list_per_page = 20
search_fields = ['id', 'title'']
list_display = ('title',)
fieldsets = [
( "Article Data", {
'
'fields': ['title',]
}),
( "Related Articles", {
'fields': ['related_articles']
}),
]
admin.site.register(Article, Article_Admin)
如何设置非超级管理员查看的权限模型.ManyToManyField('self')在管理页面?