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
alters your form in that way. Then just add the path to your
JavaScript file to the "admin.js" list in your model.

If this is a common problem, we can make a more generic solution for
it in Django itself -- it'd just be a matter of coming up with a good
syntax for describing it.

Adrian

Reply via email to