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 AustralianPlace
|
||||
|
||||
from .models import AustralianPlace
|
||||
|
||||
|
||||
class AustralianPlaceForm(ModelForm):
|
||||
""" Form for storing an Australian place. """
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from django.db import models
|
||||
from django.contrib.localflavor.au.models import AUStateField, AUPostCodeField
|
||||
from django.db import models
|
||||
|
||||
class AustralianPlace(models.Model):
|
||||
state = AUStateField(blank=True)
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re
|
||||
|
||||
from django.test import SimpleTestCase
|
||||
from django.contrib.localflavor.au.forms import (AUPostCodeField,
|
||||
AUPhoneNumberField, AUStateSelect)
|
||||
|
||||
from forms import AustralianPlaceForm
|
||||
from .forms import AustralianPlaceForm
|
||||
|
||||
|
||||
SELECTED_OPTION_PATTERN = r'<option value="%s" selected="selected">'
|
||||
BLANK_OPTION_PATTERN = r'<option value="">'
|
||||
|
||||
Reference in New Issue
Block a user