Re: Set arguments in model dinamically

2005-08-18 Thread paolo
Adrian Holovaty ha scritto: > On 8/17/05, paolo <[EMAIL PROTECTED]> wrote: [cut] > > For customization like this, you can write some custom JavaScript that > alters your form in that way. Then just add the path to your > JavaScript file to the "admin.js" list in your model. [cut] Hi Adrian, perh

Re: Set arguments in model dinamically

2005-08-17 Thread Adrian Holovaty
On 8/17/05, paolo <[EMAIL PROTECTED]> wrote: > The model I'm using for 'customers' has a BooleanField called > 'blocked'. I'd like that when blocked is True other fields won't be > shown, or eventually won't be editable. For customization like this, you can write some custom JavaScript that alter

Set arguments in model dinamically

2005-08-17 Thread paolo
The model I'm using for 'customers' has a BooleanField called 'blocked'. I'd like that when blocked is True other fields won't be shown, or eventually won't be editable. How to obtain this? Thanks