1
0
mirror of https://github.com/django/django.git synced 2025-03-14 03:10:45 +00:00

[1.9.x] Refs #25294 -- Added BoundField import for backwards compatibility.

Backport of a51070e7434426467869147608c5a8ca58e21e00 from master
This commit is contained in:
Moritz Sichert 2015-09-24 19:57:19 +02:00 committed by Tim Graham
parent ca2c5508be
commit 9b5f1880e9

View File

@ -8,6 +8,8 @@ import copy
from collections import OrderedDict
from django.core.exceptions import NON_FIELD_ERRORS, ValidationError
# BoundField is imported for backwards compatibility in Django 1.9
from django.forms.boundfield import BoundField # NOQA
from django.forms.fields import Field, FileField
# pretty_name is imported for backwards compatibility in Django 1.9
from django.forms.utils import ErrorDict, ErrorList, pretty_name # NOQA