On Thu, Jun 18, 2009 at 2:38 PM, Adam V. <fla...@gmail.com> wrote:

>
> When enabling bulk edit mode for an Admin list view, is it possible to
> control the widgets used? For the normal editor you can of course
> specify a custom form, but I'm not seeing a way to customize the
> fields in the list view.
>
> Basically, I want to specify that some text fields fields in the list
> view render shorter than the default.
>
> I can hack this in with some fairly gross after-the-fact client-side
> JavaScript, but I'd rather be able to specify this behavior in my
> admin.ModelAdmin if the ability exists.
>
> >
>
Unfortunately there isn't a super good way to do this.  list_editalbe uses
the formfield_for_dbfield option just like rendering the normal form does,
however this obviously doesn't give you a ton of flexibility.  One thing you
could do for now, until we fix this, is to check the URL of the request
object that formfield_for_dbfield gets.

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to