Re: new field idea

2006-07-17 Thread dummy
Hi django-developers, a generic api for registration of new fields would be a good idea. As IOC, FIFA and ISO-3166 codes are not the same this won't help me: http://en.wikipedia.org/wiki/Comparison_of_IOC%2C_FIFA%2C_and_ISO_3166_country_codes But IOC, FIFA and ISO-3166 should have the same api.

Re: new field idea

2006-07-16 Thread Malcolm Tredinnick
On Sun, 2006-07-16 at 23:31 +0200, [EMAIL PROTECTED] wrote: > Hi django-developers, > > I had the need for a field type similar to USStateField: an > OlympicNationField which takes 3 uppercase letters to the official olympic > nation abbrevation. > > Maybe this is generic enough to go into dja

Re: new field idea

2006-07-16 Thread Tom Tobin
On 7/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi django-developers, > > I had the need for a field type similar to USStateField: an > OlympicNationField which takes 3 uppercase letters to the official olympic > nation abbrevation. I would feel better using ISO 3166-1 country codes

new field idea

2006-07-16 Thread dummy
Hi django-developers, I had the need for a field type similar to USStateField: an OlympicNationField which takes 3 uppercase letters to the official olympic nation abbrevation. Maybe this is generic enough to go into django.db.models.fields ? I attach my solution. Regards, Dirk -- "Feel free