Hi Jani,

In fact, I was checking this MDN Django tutorial <https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Testing> and find out that it could be easier to check out which permissions I should assign to a view or not. Honestly, I ended up querying directly on the DB (instead of logging in with the admin account and doing some clicks until I got what I needed).

I imagine that what is a source of some boredom might become a problem if I got a larger number of Models in an application.


Em 13/06/2017 13:19, Jani Tiainen escreveu:
Hi!

Excellent question.

Permission model itself is not exposed in admin but you could expose it yourself if you want to.

Just for curiosity what would be the usecase?

13.6.2017 19.05 "Alceu Rodrigues de Freitas Junior" <alceu.freitas...@gmail.com <mailto:alceu.freitas...@gmail.com>> kirjoitti:

    Hello folks,

    Is there a standard way to see permissions on Django? I'm using
    the latest version, but "out-of-box" views on admin application
    only shows me the available permissions when checking them for a
    group or user.

    I would like to list the permissions or even search for them by
    Model subclass... I could easily do something, but before I would
    like to check if I'm not reinventing the wheel. :-)

    Thanks!
-- Alceu

-- 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+unsubscr...@googlegroups.com
    <mailto:django-users%2bunsubscr...@googlegroups.com>.
    To post to this group, send email to django-users@googlegroups.com
    <mailto:django-users@googlegroups.com>.
    Visit this group at https://groups.google.com/group/django-users
    <https://groups.google.com/group/django-users>.
    To view this discussion on the web visit
    
https://groups.google.com/d/msgid/django-users/5a3eb1a5-dd27-7480-7f27-231ed2c7c764%40gmail.com
    
<https://groups.google.com/d/msgid/django-users/5a3eb1a5-dd27-7480-7f27-231ed2c7c764%40gmail.com>.
    For more options, visit https://groups.google.com/d/optout
    <https://groups.google.com/d/optout>.


--
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+unsubscr...@googlegroups.com <mailto:django-users+unsubscr...@googlegroups.com>. To post to this group, send email to django-users@googlegroups.com <mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHn91ofab1WYKoa2Vv2Q0EGtRCiudDS8KTO%3DzKKvKrHdLfip%3Dw%40mail.gmail.com <https://groups.google.com/d/msgid/django-users/CAHn91ofab1WYKoa2Vv2Q0EGtRCiudDS8KTO%3DzKKvKrHdLfip%3Dw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/96828bd4-aace-8ab9-d9d9-5a8d0e12f868%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to