The ModelAdmin has a method get_readonly_fields [1]. You can override this method and check a custom permission[2].
[1] https://docs.djangoproject.com/en/1.7/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_readonly_fields [2] https://docs.djangoproject.com/en/1.7/ref/models/options/#permissions On Sun, Feb 8, 2015 at 12:44 PM, Hangloser Firestarter <nosbie...@gmail.com> wrote: > Hello. > I am using the admin backend of a system, but not all users of this > backend can access all system models. > By default Django is the roles ADD, EDIT and DELETE, I wonder if anyone > has customized the model auth.permission to generate a permission 'read > only' to Django Admin? Or if you have used any APP to do that. > > Thank > > -- > 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 http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/977d9fa7-0f27-4346-8322-e7938f263fac%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/977d9fa7-0f27-4346-8322-e7938f263fac%40googlegroups.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 http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGjPPHk%2BrhFCgm2V9-qJri0YMkmaOzqdUp%3DZpPQv25rhfp1vaA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.