阅读背景:

如何创建非管理员用户无法更改的“创建者”字段?

来源:互联网 

I am looking for a way to create an added_by field to a Django admin model that is set to the currently logged in Django admin user and can only be changed by admins (so that users can only create items that claim to be added by themselves). I would welcome solutions that rely on external libraries. How can I achieve that functionality? fi




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: