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;
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
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,
3 matches
Mail list logo