mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #16497 -- Added new form and model fields to the Mexican local flavor. Many thanks to Andrés Torres Marroquín and Gerardo Orozco.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16572 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -2,6 +2,6 @@ from django.forms import ModelForm
|
||||
from models import USPlace
|
||||
|
||||
class USPlaceForm(ModelForm):
|
||||
"""docstring for PlaceForm"""
|
||||
|
||||
class Meta:
|
||||
model = USPlace
|
||||
|
||||
@@ -11,5 +11,6 @@ class USPlace(models.Model):
|
||||
state_default = USStateField(default="CA", blank=True)
|
||||
postal_code = USPostalCodeField(blank=True)
|
||||
name = models.CharField(max_length=20)
|
||||
|
||||
class Meta:
|
||||
app_label = 'localflavor'
|
||||
|
||||
Reference in New Issue
Block a user