PageRenderTime 70ms CodeModel.GetById 67ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/regressiontests/localflavor/us/models.py

https://code.google.com/p/mango-py/
Python | 15 lines | 11 code | 2 blank | 2 comment | 0 complexity | 5d8b7ea4b7a6a173640f5df413a2066d MD5 | raw file
 1from django.db import models
 2from django.contrib.localflavor.us.models import USStateField
 3from django.contrib.localflavor.us.models import USPostalCodeField
 4
 5# When creating models you need to remember to add a app_label as
 6# 'localflavor', so your model can be found
 7
 8class USPlace(models.Model):
 9    state = USStateField(blank=True)
10    state_req = USStateField()
11    state_default = USStateField(default="CA", blank=True)
12    postal_code = USPostalCodeField(blank=True)
13    name = models.CharField(max_length=20)
14    class Meta:
15        app_label = 'localflavor'