Re: Popup 'add another' and custom widget in newforms-admin

2007-11-22 Thread Julien
Doesn't anyone know how to help me on this? Also, I've found another problem. Using the custom form field CitiesField makes the attribute required (I get an error if I don't put any cities in a person's profile). But it is not required if I switch back to the regular ManyToManyField form field. H

Re: Popup 'add another' and custom widget in newforms-admin

2007-11-22 Thread Julien
Ooops, just realised I didn't finished writing the first sentence of my previous post. So here it is: "I have created a custom widget using the branch newforms-admin to represent a ManyToMany relation with checkboxes." On Nov 22, 10:49 pm, Julien <[EMAIL PROTECTED]> wrote: > Hi all, > > I have cr

Popup 'add another' and custom widget in newforms-admin

2007-11-22 Thread Julien
Hi all, I have created a custom widget using the branch newforms-admin to represent (see code below): To test it, create a couple of countries, then a few cities attached to those countries, and then create a new Person. In the class PersonOptions, the line "formfield.widget.render = widgets.R