开发者

read only permission in admin interface

开发者 https://www.devze.com 2022-12-24 04:29 出处:网络
I saw this post, https://stackoverflow.com/posts/1348076/revisions , only at step 3 i\'m getting confused, he tells to put3. Add \"get_view_permission\" to default model class

I saw this post, https://stackoverflow.com/posts/1348076/revisions , only at step 3 i'm getting confused, he tells to put 3. Add "get_view_permission" to default model class

but what's the default model class? It doesn't seem to work to me, i get following error message:

AttributeError at /admin/

'Options' object has no attribute 'get_view_permission'

Request Method: GET Request URL: Exce开发者_运维技巧ption Type: AttributeError Exception Value:

'Options' object has no attribute 'get_view_permission'

So he complains about no get_view_permission, but where to place this get_view_permission???

Regards,

T


Looks like he means in django/db/models.py.

0

精彩评论

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