Thursday, July 24, 2014

Re: Hiding models from certain UserAdmin

-----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-----

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/53D100AE.1050808%40gonzalodelgado.com.ar.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment