Re: Dynamic Fields in Models

2008-06-13 Thread phillc
make the phone field have its own form. (you can have multiple django forms in the same html form) create a function that checks the country in the other form, and returns a form that is either US or International base phone checking. default it to one or the other, so that something shows up to s

Re: Dynamic Fields in Models

2008-06-12 Thread Adi J. Sieker
Hi, David Cramer wrote: > I came across the need today to modify PhoneNumberField to allow for > International phone numbers. Doing so, it occurred to me, it'd be very > useful just to be able to swap out my phone number field with the > localized version based on whatever country was selected. >