~ubuntu-branches/ubuntu/quantal/python-django/quantal-security

« back to all changes in this revision

Viewing changes to tests/regressiontests/localflavor/us/models.py

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge
  • Date: 2010-10-12 11:34:35 UTC
  • mfrom: (1.2.7 upstream)
  • mto: This revision was merged to the branch mainline in revision 30.
  • Revision ID: james.westby@ubuntu.com-20101012113435-9lnsrh0i3mxozbt0
Tags: upstream-1.2.3
ImportĀ upstreamĀ versionĀ 1.2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from django.db import models
 
2
from django.contrib.localflavor.us.models import USStateField
 
3
 
 
4
# When creating models you need to remember to add a app_label as
 
5
# 'localflavor', so your model can be found
 
6
 
 
7
class USPlace(models.Model):
 
8
    state = USStateField(blank=True)
 
9
    state_req = USStateField()
 
10
    state_default = USStateField(default="CA", blank=True)
 
11
    name = models.CharField(max_length=20)
 
12
    class Meta:
 
13
        app_label = 'localflavor'