read only permission in admin interface
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
.
精彩评论