Re: How can I manually use RelatedFieldWidgetWrapper around a custom widget?

2010-03-10 Thread justind
Hello, I have this working now, but it seems so convoluted I know it must be backwards or just plain dumb. I hope someone comes along and shows me how easy this is. First, I add the admin_site to the form field of my ModelAdmin object class ResourceAdmin(admin.ModelAdmin): form =

How can I manually use RelatedFieldWidgetWrapper around a custom widget?

2010-03-09 Thread justind
Hello, I've created a custom widget to replace the many to many widget found in the admin. Its working well, but I lose the "add" button when I use it. I see that the functionality is added by wrapping the widget in the RelatedFieldWidgetWrapper, but I can't figure out how to implement it.