| 1296 | |
| 1297 | == Moved USStateField and PhoneNumberField to localflavor == |
| 1298 | |
| 1299 | [8819] moved the us-centric `USStateField` and `PhoneNumberField` out of core and into `django.contrib.localflavor.us.models`. If you're using those fields, you'll need to import the fields from their new location. That is, if you had: |
| 1300 | |
| 1301 | {{{ |
| 1302 | #!python |
| 1303 | from django.db import models |
| 1304 | |
| 1305 | class Person(models.Model): |
| 1306 | state = models.USSateField() |
| 1307 | phone = models.PhoneNumberField() |
| 1308 | ... |
| 1309 | }}} |
| 1310 | |
| 1311 | You'll need to change it to: |
| 1312 | |
| 1313 | {{{ |
| 1314 | #!python |
| 1315 | from django.db import models |
| 1316 | from django.contrib.localflavor.us.models import USStateField, PhoneNumberField |
| 1317 | |
| 1318 | class Person(models.Model): |
| 1319 | state = USSateField() |
| 1320 | phone = PhoneNumberField() |
| 1321 | ... |
| 1322 | }}} |