mirror of
https://github.com/django/django.git
synced 2024-12-29 12:36:08 +00:00
8c0eefd066
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16981 bcc190cf-cafb-0310-a4f2-bffc1f526a37
15 lines
525 B
Python
15 lines
525 B
Python
from django.contrib.localflavor.au.models import AUStateField, AUPostCodeField
|
|
from django.db import models
|
|
|
|
class AustralianPlace(models.Model):
|
|
state = AUStateField(blank=True)
|
|
state_required = AUStateField()
|
|
state_default = AUStateField(default="NSW", blank=True)
|
|
postcode = AUPostCodeField(blank=True)
|
|
postcode_required = AUPostCodeField()
|
|
postcode_default = AUPostCodeField(default="2500", blank=True)
|
|
name = models.CharField(max_length=20)
|
|
|
|
class Meta:
|
|
app_label = 'localflavor'
|