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:
12
tests/regressiontests/localflavor/mx/models.py
Normal file
12
tests/regressiontests/localflavor/mx/models.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from django.db import models
|
||||
from django.contrib.localflavor.mx.models import (
|
||||
MXStateField, MXRFCField, MXCURPField, MXZipCodeField)
|
||||
|
||||
class MXPersonProfile(models.Model):
|
||||
state = MXStateField()
|
||||
rfc = MXRFCField()
|
||||
curp = MXCURPField()
|
||||
zip_code = MXZipCodeField()
|
||||
|
||||
class Meta:
|
||||
app_label = 'localflavor'
|
||||
Reference in New Issue
Block a user