t;> I'v been through the sourcecode for a bit to find an answer to this,
>> but so far no luck, so I thought I try this. It seems such an obvious
>> feature that i can't believe it is missing.
>>
>> can anybody help?
>>
>> regards,
>>
>> Ernst
t; ReadOnlyWidget(getattr(obj, field_name), display_value)
> else:
>
> form.base_fields[field_name].widget =
> ReadOnlyWidget(getattr(obj, field_name).id, display_value)
> form.base_fields[field_name].required = False
> return form
>
2 matches
Mail list logo