On Wed, 2009-02-18 at 06:15 -0800, mermer wrote:
> Thanks, that works very well - but as you mentioned is certainly not
> intuitive.
>
> Can you use a similar technique to prepopulate fields? My use case is
> this:-
>
> I want to display an INLINE formset. Though records which already
>
Thanks, that works very well - but as you mentioned is certainly not
intuitive.
Can you use a similar technique to prepopulate fields? My use case is
this:-
I want to display an INLINE formset. Though records which already
exist I want to display but make certain fields uneditable
Using the
On Tue, 2009-02-17 at 20:25 -0500, Alex Gaynor wrote:
[...]
> Writing a custom widget to do it isn't especially easy because the
> render method on widgets doesn't get the initial value, however you
> can do it:
> http://lazypython.blogspot.com/2008/12/building-read-only-field-in-django.html
On Tue, Feb 17, 2009 at 8:23 PM, Malcolm Tredinnick <
malc...@pointy-stick.com> wrote:
>
> On Tue, 2009-02-17 at 17:19 -0800, mermer wrote:
> > Is there a way to display only the values of certain fields in the
> > Admin, so that it is clear that those fields are non-editable?
>
> You would have
On Tue, 2009-02-17 at 17:19 -0800, mermer wrote:
> Is there a way to display only the values of certain fields in the
> Admin, so that it is clear that those fields are non-editable?
You would have to write a custom form widget to do so. There's nothing
out-of-the-box yet. We'll get to it one
Is there a way to display only the values of certain fields in the
Admin, so that it is clear that those fields are non-editable?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
6 matches
Mail list logo