Re: partially edit an object

2008-05-16 Thread Robin Becker
koenb wrote: sted a snippet on > djangosnippets with my DisplayModelForm [1]. > Basically, it allows you to reuse your form definitions, but turn them > into a "display_only" mode. You can do all fields or just a few. > .. I've passed this to my colleague who will no doubt digest in due time;

Re: partially edit an object

2008-05-16 Thread koenb
Robin, I don't know if this is a 'right' way, but I posted a snippet on djangosnippets with my DisplayModelForm [1]. Basically, it allows you to reuse your form definitions, but turn them into a "display_only" mode. You can do all fields or just a few. I use it to display objects to users, with

partially edit an object

2008-05-15 Thread Robin Becker
I have a colleague who wishes to restrict the editability of fields dynamically. I can see how this arises by considering a Person object. The supervisor role might be allowed to edit more than the individual concerned. We looked in vain for an 'easy' way to do this using old forms, newforms,