开发者

Where does the creation of permissions live in Django?

开发者 https://www.devze.com 2023-01-03 01:21 出处:网络
I need to do some debugging, because the permissions for one of m开发者_JAVA百科y models are created wrongly. So I tried to find the piece of code where Django creates the permissions upon syncdb and

I need to do some debugging, because the permissions for one of m开发者_JAVA百科y models are created wrongly. So I tried to find the piece of code where Django creates the permissions upon syncdb and writes them in the database, but I haven't been successful at all; maybe I just overlooked the right lines of code, but if somebody can point me out the right module / line of code where this happens I'd be very happy!


Check out create_permissions; note that it is wired up to fire when it receives the post_syncdb signal.

0

精彩评论

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