开发者

Will Django user permissions work for models with inline tabular forms of other models?

开发者 https://www.devze.com 2022-12-23 04:24 出处:网络
I am setting up DJango admin to make a model editable.On the same page I have tabular inline of a child model.Everything works as expected.Now I want to restrict permission on the tabular inline child

I am setting up DJango admin to make a model editable. On the same page I have tabular inline of a child model. Everything works as expected. Now I want to restrict permission on the tabular inline child form. Specifically remove update and delete permissions on it. I have tried removing the permissions for the admin user using the 'user permissions' of that user. Ho开发者_StackOverflow社区wever, it does not work. Does DJango respect the user permissions in regards to inline model forms?


It works as of django 1.4. Here's the original ticket: http://code.djangoproject.com/ticket/8060

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号