heya,
Thanks for your answer - I posted a reply (doesn't seem to work for
non-US), however, it doesn't seem to have appeared on the web-version
of Groups, so I thought I'd email you directly, just in case you
missed it and happened to know.
Thanks,
Victor
Hmm, I'm actually trying this
heya,
Hmm, I'm actually trying this Australian localisation.
However, the weird thing is, there's a US models.py:
http://code.djangoproject.com/browser/django/trunk/django/contrib/localflavor/us/models.py
But there's no such models.py for other countries. E.g., for
Australia:
On Thu, Oct 28, 2010 at 12:23 AM, Victor Hooi wrote:
> Hi,
>
> Is there any way to combine the localflavor module (http://
> docs.djangoproject.com/en/dev/ref/contrib/localflavor/) with Django's
> in-built admin module?
>
> For example, I'd like to create a model with say, a
Hi,
Is there any way to combine the localflavor module (http://
docs.djangoproject.com/en/dev/ref/contrib/localflavor/) with Django's
in-built admin module?
For example, I'd like to create a model with say, a Postcode and phone-
number field, and have these validated in the admin, as per the
Sorry, I was referring to the state and zip fields. After modifying
my model, doing a sqlreset, and implementing the changes, they now
show up. Thanks!
I was confused between the functionality of the forms and the fields
in models. I'll get into the widget usage in the forms when building
> I have a model:
>
> from django.db import models
> from django import newforms as forms
> from django.contrib.localflavor.us import forms as us_forms
>
> class Address(models.Model):
> member = models.ForeignKey(Member, unique=True)
> street =
On Mar 30, 8:49 pm, erikankrom <[EMAIL PROTECTED]> wrote:
> I have a model:
>
> from django.db import models
> from django import newforms as forms
> from django.contrib.localflavor.us import forms as us_forms
>
> class Address(models.Model):
> member =
I have a model:
from django.db import models
from django import newforms as forms
from django.contrib.localflavor.us import forms as us_forms
class Address(models.Model):
member = models.ForeignKey(Member, unique=True)
street =
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 =
9 matches
Mail list logo