mirror of
https://github.com/django/django.git
synced 2025-07-07 11:19:12 +00:00
[4.0.x] Refs #31026 -- Changed @jinja2_tests imports to be relative.
Backport of 03a648811615cb623affc2d79dccd4b05919319e from main
This commit is contained in:
parent
2308fb5806
commit
3f5d43ce54
@ -45,7 +45,8 @@ from django.test import SimpleTestCase
|
|||||||
from django.test.utils import override_settings
|
from django.test.utils import override_settings
|
||||||
from django.utils.datastructures import MultiValueDict
|
from django.utils.datastructures import MultiValueDict
|
||||||
from django.utils.safestring import mark_safe
|
from django.utils.safestring import mark_safe
|
||||||
from tests.forms_tests.tests import jinja2_tests
|
|
||||||
|
from . import jinja2_tests
|
||||||
|
|
||||||
|
|
||||||
class FrameworkForm(Form):
|
class FrameworkForm(Form):
|
||||||
|
@ -17,7 +17,8 @@ from django.forms.formsets import BaseFormSet, all_valid, formset_factory
|
|||||||
from django.forms.utils import ErrorList
|
from django.forms.utils import ErrorList
|
||||||
from django.forms.widgets import HiddenInput
|
from django.forms.widgets import HiddenInput
|
||||||
from django.test import SimpleTestCase
|
from django.test import SimpleTestCase
|
||||||
from tests.forms_tests.tests import jinja2_tests
|
|
||||||
|
from . import jinja2_tests
|
||||||
|
|
||||||
|
|
||||||
class Choice(Form):
|
class Choice(Form):
|
||||||
|
@ -10,7 +10,8 @@ from django.forms import (
|
|||||||
from django.test import SimpleTestCase
|
from django.test import SimpleTestCase
|
||||||
from django.utils import translation
|
from django.utils import translation
|
||||||
from django.utils.translation import gettext_lazy
|
from django.utils.translation import gettext_lazy
|
||||||
from tests.forms_tests.tests import jinja2_tests
|
|
||||||
|
from . import jinja2_tests
|
||||||
|
|
||||||
|
|
||||||
class FormsI18nTests(SimpleTestCase):
|
class FormsI18nTests(SimpleTestCase):
|
||||||
|
@ -5,7 +5,6 @@ from django.db import models
|
|||||||
from django.forms import CharField, FileField, Form, ModelForm
|
from django.forms import CharField, FileField, Form, ModelForm
|
||||||
from django.forms.models import ModelFormMetaclass
|
from django.forms.models import ModelFormMetaclass
|
||||||
from django.test import SimpleTestCase, TestCase
|
from django.test import SimpleTestCase, TestCase
|
||||||
from tests.forms_tests.tests import jinja2_tests
|
|
||||||
|
|
||||||
from ..models import (
|
from ..models import (
|
||||||
BoundaryModel,
|
BoundaryModel,
|
||||||
@ -16,6 +15,7 @@ from ..models import (
|
|||||||
FileModel,
|
FileModel,
|
||||||
OptionalMultiChoiceModel,
|
OptionalMultiChoiceModel,
|
||||||
)
|
)
|
||||||
|
from . import jinja2_tests
|
||||||
|
|
||||||
|
|
||||||
class ChoiceFieldForm(ModelForm):
|
class ChoiceFieldForm(ModelForm):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user