Welcome to MLink Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
311 views
in Technique[技术] by (71.8m points)

python - "has_add_permission" is called on every admin page irrespective of explicitly invoked in Django Admin

I have override "has_add_permission" in one of my ModelAdmin and it has been called automatically in my other modelAdmin classes too. I found that it is happening due to "each_context" method called every time. Is there any way we can stop that thing calling on each model admin.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to MLink Developer Q&A Community for programmer and developer-Open, Learning and Share
...