On 1/6/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote:

On 1/4/06, Colleen Owens <[EMAIL PROTECTED]> wrote:
>  I'm having trouble figuring out how to customize the appearance of a
> foreign key that's edited inline in the admin interface. For example, if I
> wanted to change how the poll choices from the tutorial are displayed, by
> suppressing the number of votes, or changing the order in which the votes
> and choices are displayed, is there a way to do this?

Hey Colleen,

To suppress the number of votes, add "editable=False" to that field in
the Choice model.

To change the order in which the votes/choices are displayed, change
the field order in the Choice model.

Hope this helps!

Adrian


Thanks for the reply, Adrian. I want to be able to change the field order and which fields are displayed while I'm editing something inline. Changing the field order and which fields are displayed for the Choice model using the "fields" option only seems to affect the display for editing the Choices directly. Or am I misunderstanding what you meant?

Thanks!


Reply via email to