Am 20.01.2011 um 03:27 schrieb Peter Phillips:

> Hello,
> 
> Is there a straightforward way to set fields to read only for a subset
> of the forms in an inline formset in the Admin? I'd like to set some
> fields to read only on my inline form for rows that were not created
> by the user. However, when I set the fields to read only, it of course
> affects all rows/forms in the inline, preventing the user from editing
> their own rows. Do I need to do a custom formset for
> InlineModelAdmin.formset?


hi,

maybe this provides a proper solution for you:
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.readonly_fields


good luck,
TR



------------------------------------------------

http://thoreg.org




-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to