django1/django/contrib/localflavor/uk/forms.py

11 lines
357 B
Python
Raw Normal View History

from django.contrib.localflavor.gb import forms
import warnings
warnings.warn(
'The "UK" prefix for United Kingdom has been deprecated in favour of the '
'GB code. Please use the new GB-prefixed names.', PendingDeprecationWarning)
UKPostcodeField = forms.GBPostcodeField
UKCountySelect = forms.GBCountySelect
UKNationSelect = forms.GBNationSelect