Re: readonly form field

2010-08-25 Thread Rodrigo Lombardo
Great answers, thanks! I'd like to complement this thread remembering the importance of overriding the save method to save just the desired fields and in this way, avoiding Django to validate read-only fields. Rodrigo Nicola Twitter: http://www.twitter.com/rodnic On Wed, Aug 25, 2010 at 5:29 A

Re: readonly form field

2010-08-25 Thread Sævar Öfjörð
You could use a widget http://stackoverflow.com/questions/1827526/django-creating-a-form-field-thats-read-only-using-widgets Best regards, Sævar On Aug 24, 7:02 pm, Rodrigo Lombardo wrote: > Hi, > > I'm new to Django and I'm learning a lot reading the docs and some books. > I'm trying to genera

Re: readonly form field

2010-08-25 Thread Ковалевич
on ModelAdmin there is read only fields http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.readonly_fields On 24 August 2010 20:02, Rodrigo Lombardo wrote: > Hi, > > I'm new to Django and I'm learning a lot reading the docs and some books. > I'm trying to gen

readonly form field

2010-08-24 Thread Rodrigo Lombardo
Hi, I'm new to Django and I'm learning a lot reading the docs and some books. I'm trying to generate a form with some inactive fields and let the user change only some fields. The way I found to do this is described here: http://stackoverflow.com/questions/324477/in-a-django-form-how-to-make-a-fi