Display old instances as read only in admin inlines

2016-06-17 Thread Olivier Dalang
Dear List, I'm a bit stuck on a problem. I googled a lot, but didn't find an answer. I have a "Loan" model and a "Payment" model. In the admin, I display the payments for each loan in inlines. I want payements that are more than 3 days old to be displayed as readonly, as they are considered to be

Re: Read-only in admin

2009-03-22 Thread legutierr
Thanks for the reply, Karen. Yeah, I posted this before seeing that the feature list for 1.1 included read-only fields. It was my mistake to only search through the newsgroup and neglect searching the wiki before posting this (you can never be too thorough, I guess). It's just that so much of w

Re: Read-only in admin

2009-03-22 Thread Karen Tracey
On Sun, Mar 22, 2009 at 3:16 AM, legutierr wrote: > [snip long list of why read only fields in the admin could be useful] I ask that other Django users or potential users that have good > reasons for needing a read-only option in the admin post their reasons > here, so that at least it becomes

Read-only in admin

2009-03-22 Thread legutierr
thout violating the philosophy against read-only in admin. The most important philosophy that Django has, however is not "no read-only in admin", but DO NOT REPEAT YOURSELF, and that seems to be violated here. - I know I can customize admin myself. But do I really want to make chang

Re: read only in Admin interface

2008-01-16 Thread Collin Grady
On Jan 16, 3:49 am, Serxio <[EMAIL PROTECTED]> wrote: > Overriding the admin/change_form.html template, and wiping out the > line {% submit_row %} may do the trick. If that only hides the HTML, it won't be safe at all. --~--~-~--~~~---~--~~ You received this messag

Re: read only in Admin interface

2008-01-16 Thread Serxio
Hi! Overriding the admin/change_form.html template, and wiping out the line {% submit_row %} may do the trick. Of course, it's not perfect, but can help. Regards, Serxio. On 8 ene, 17:17, Nader <[EMAIL PROTECTED]> wrote: > Hello, > > I have looked while for a answer to my problem but unfortun

Re: read only in Admin interface

2008-01-09 Thread [EMAIL PROTECTED]
Hello, This past summer I did exactly this using newforms-admin. I can't remember off the top of my head how I did it, and I don't have access to my code, but I'd suggest looking there first. I remember that it wasn't too difficult, actually. Hope that helps! Thanks, Eric Florenzano On Jan 8

Re: read only in Admin interface

2008-01-09 Thread Kenneth Gonsalves
On 09-Jan-08, at 12:14 AM, James Bennett wrote: >> Another dirty solution would be to simply create a user account, and >> give it permissions to only view things. I haven't played with >> permissions at all, but I imagine it would be possible. >> The correct way is still to write your own code

Re: read only in Admin interface

2008-01-08 Thread James Bennett
On Jan 8, 2008 12:14 PM, Jeff Anderson <[EMAIL PROTECTED]> wrote: > Another dirty solution would be to simply create a user account, and > give it permissions to only view things. I haven't played with > permissions at all, but I imagine it would be possible. > The correct way is still to write yo

Re: read only in Admin interface

2008-01-08 Thread Jeff Anderson
James Bennett wrote: On Jan 8, 2008 10:17 AM, Nader <[EMAIL PROTECTED]> wrote: I have looked while for a answer to my problem but unfortunately I haven't found a one, maybe I had to spend more time. However I have a project with some applications. By using of Admin we can Create, Read, Updat

Re: read only in Admin interface

2008-01-08 Thread Tim Chase
>> one application I would like only to read the model and could not >> use Create, Update and Delete capabilities. Would somebody tell me >> how I can solve this problem by using of Admin interface? > > As you'll find by searching the archives of this list, this is not > something the Django a

Re: read only in Admin interface

2008-01-08 Thread Alex Koshelev
Look at the databrowse application http://www.djangoproject.com/documentation/databrowse/ On 8 янв, 19:17, Nader <[EMAIL PROTECTED]> wrote: > Hello, > > I have looked while for a answer to my problem but unfortunately I > haven't found a one, maybe I had to spend more time. However I have a > pr

Re: read only in Admin interface

2008-01-08 Thread James Bennett
On Jan 8, 2008 10:17 AM, Nader <[EMAIL PROTECTED]> wrote: > I have looked while for a answer to my problem but unfortunately I > haven't found a one, maybe I had to spend more time. However I have a > project with some applications. By using of Admin we can Create, Read, > Update and Delete (CRUD

read only in Admin interface

2008-01-08 Thread Nader
Hello, I have looked while for a answer to my problem but unfortunately I haven't found a one, maybe I had to spend more time. However I have a project with some applications. By using of Admin we can Create, Read, Update and Delete (CRUD) models information in the project. But in one applicati