Hiding models from certain UserAdmin

14 views
Skip to first unread message

alireza sanaee

unread,
Jul 24, 2014, 8:36:21 AM7/24/14
to django...@googlegroups.com
I want to hide some models in django admin from some users which are admins but I don't know it is possible or not  .
Thank you in advance .

Gonzalo Delgado

unread,
Jul 24, 2014, 8:49:37 AM7/24/14
to django...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

El 24/07/14 09:36, alireza sanaee escribió:
> I want to hide some models in django admin from some users which
> are admins but I don't know it is possible or not .

Django's permissions system[0] should allow you to do exactly that.

[0]
https://docs.djangoproject.com/en/1.6/topics/auth/default/#topic-authorization

- --
Gonzalo Delgado
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iF4EAREIAAYFAlPRAK0ACgkQzbfdFL5JoUmA3AD/etZo/zjdFK+q0n+MTnHYQhu7
oBDYg9/trbisA5uiTi0BAISY3krV26Yn6toRkuA31aMD5BIMWoHjPGWTm3Gs6W30
=4wfU
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages