Re: read only django admin

2010-01-29 Thread aledr
On Fri, Jan 29, 2010 at 12:55 AM, zweb wrote: > Is it possible to have a read only django admin, ie user cannot add, > delete or update. User can only view data. > > or may be one user can be view only and other user has add/delete / > update as well in Django admin. > > How to do that? http://ww

Re: read only django admin

2010-01-29 Thread Alex Robbins
It sounds like the databrowse[1] contrib app may be what you are looking for. It is basically a read-only admin. You'll have to register classes with it the same way you register with the admin, but it might be nicer than trying to force the admin to be read-only. Hope that helps, Alex [1] http:/

Re: read only django admin

2010-01-28 Thread Ian
Despite the pedantic admonishments offered by others, there are use cases for readonly fields beyond primary keys. Metadata or implicit data that really shouldn't be changed isn't a "trust" issue, it's semantically different that application domain data. Anyway, I found this code has some issues b

Re: read only django admin

2010-01-28 Thread Mike Ramirez
On Thursday 28 January 2010 21:04:15 chefsmart wrote: > >admin is not for ordinary users who you do not trust to mess up the data. > > Whether you provide such functionality outside of the admin or inside > it, you are using the same django.contrib.auth, so "trust" is not the > reason why you cann

Re: read only django admin

2010-01-28 Thread chefsmart
>admin is not for ordinary users who you do not trust to mess up the data. Whether you provide such functionality outside of the admin or inside it, you are using the same django.contrib.auth, so "trust" is not the reason why you cannot do what you want to do within django.contrib.admin. If the pe

Re: read only django admin

2010-01-28 Thread Kenneth Gonsalves
On Friday 29 Jan 2010 10:01:15 am chefsmart wrote: > > The Django administrative interface is there to allow administrative > > users to administer data. > > But yes, you can do what you want if you use the permissions system > together with the groups system correctly. That is, create groups and

Re: read only django admin

2010-01-28 Thread chefsmart
> The Django administrative interface is there to allow administrative > users to administer data. But yes, you can do what you want if you use the permissions system together with the groups system correctly. That is, create groups and then assign whatever permissions you need to those groups. Th

Re: read only django admin

2010-01-28 Thread James Bennett
On Thu, Jan 28, 2010 at 8:55 PM, zweb wrote: > Is it possible to have a read only django admin, ie user cannot add, > delete or update. User can only view data. > > or may be one user can be view only and other user has add/delete / > update as well in Django admin. The Django administrative inte