On Wed, 2009-02-18 at 06:15 -0800, mermer wrote:
> Thanks,  that works very well - but as you mentioned is certainly not
> intuitive.
> 
> Can you use a similar technique to prepopulate fields?  My use case is
> this:-
> 
> I want to display an INLINE formset.  Though records which already
> exist I want to display but make certain fields uneditable
> Using the "Extra"  I want to give the adminstrator the ability to add
> an inline record, but restrict certain fields, by making sure that
> they are prepopulated with data, which are also uneditable.

Anything is possible, since this is Python. Can it be done
out-of-the-box? No. As already mentioned, the admin doesn't support
read-only data like that yet.

Creating read-only form fields isn't really that unintuitive. It might
take a bit of fiddling to get it working properly, but that's life in
the software development business.

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
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