mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Convert the remainder of the relative imports in the tests to be absolute imports.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16981 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.forms import ModelForm
|
||||
from models import USPlace
|
||||
|
||||
from .models import USPlace
|
||||
|
||||
|
||||
class USPlaceForm(ModelForm):
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from django.contrib.localflavor.us.models import USStateField, USPostalCodeField
|
||||
from django.db import models
|
||||
from django.contrib.localflavor.us.models import USStateField
|
||||
from django.contrib.localflavor.us.models import USPostalCodeField
|
||||
|
||||
# When creating models you need to remember to add a app_label as
|
||||
# 'localflavor', so your model can be found
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.contrib.localflavor.us.forms import (USZipCodeField,
|
||||
USPhoneNumberField, USStateField, USStateSelect,
|
||||
USSocialSecurityNumberField)
|
||||
from django.test import SimpleTestCase
|
||||
|
||||
from forms import USPlaceForm
|
||||
from .forms import USPlaceForm
|
||||
|
||||
class USLocalflavorTests(SimpleTestCase):
|
||||
|
||||
class USLocalFlavorTests(SimpleTestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.form = USPlaceForm({'state':'GA', 'state_req':'NC', 'postal_code': 'GA', 'name':'impossible'})
|
||||
|
||||
Reference in New Issue
Block a user