List Info

Thread: Using localflavor for admin




Using localflavor for admin
country flaguser name
United States
2007-09-29 10:30:07
Hi!

I want to use localflavor field validation in admin. Is it
possible?
I'm thinking in something like this (that of course is not
working):

----------
from django.db import models
from django.contrib.localflavor.us import forms as us_forms

class MyModel(models.Model):
        zip_code = us_forms.USZipCodeField()

----------

Thanks!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )