Re: Using localflavor with admin?

2010-11-01 Thread Victor Hooi
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

Re: Using localflavor with admin?

2010-11-01 Thread Victor Hooi
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:

Re: Using localflavor with admin?

2010-10-28 Thread Frank Wiles
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

Using localflavor with admin?

2010-10-27 Thread Victor Hooi
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

Re: localflavor in admin

2008-03-30 Thread erikankrom
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

Re: localflavor in admin

2008-03-30 Thread Evert Rol
> 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 =

Re: localflavor in admin

2008-03-30 Thread Daniel Roseman
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 =

localflavor in admin

2008-03-30 Thread erikankrom
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 =

Using localflavor for admin

2007-09-29 Thread Marc Garcia
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 =