On Tue, 2007-10-23 at 17:43 -0700, [EMAIL PROTECTED] wrote: > I just know this has got to be lurking around in Django somewhere... > If I use USStateField, is there a filter or other method to output the > state name in Associated Press style? I know there's AP filters for > times and numbers, but can't find anything for states. and looking > around in localflavor I don't see any mapping that would connect, say, > Kan. to KS. > > Anyone got any ideas?
If you're asking for a function that converts 'KS' to 'Kan.', then, no, there isn't anything like that at the moment. For better or worse, localflavor is becoming a catch-all for that kind of stuff, so write up a patch if you think it's genuinely useful. I don't personally have strong opinions either way, since there are more important states to me than the US ones and I don't find AP style to be particularly convincing in a lot of cases, but I realise some people like to use it, so it might well be worth including. Regards, Malcolm -- Works better when plugged in. http://www.pointy-stick.com/blog/ --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---