mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed #21302 -- Fixed unused imports and import *.
This commit is contained in:
		| @@ -2,8 +2,8 @@ | ||||
| Django validation and HTML form handling. | ||||
| """ | ||||
|  | ||||
| from django.core.exceptions import ValidationError | ||||
| from django.forms.fields import * | ||||
| from django.forms.forms import * | ||||
| from django.forms.models import * | ||||
| from django.forms.widgets import * | ||||
| from django.core.exceptions import ValidationError  # NOQA | ||||
| from django.forms.fields import *  # NOQA | ||||
| from django.forms.forms import *  # NOQA | ||||
| from django.forms.models import *  # NOQA | ||||
| from django.forms.widgets import *  # NOQA | ||||
|   | ||||
| @@ -1 +1,3 @@ | ||||
| from django.forms.extras.widgets import * | ||||
| from django.forms.extras.widgets import SelectDateWidget | ||||
|  | ||||
| __all__ = ['SelectDateWidget'] | ||||
|   | ||||
| @@ -30,7 +30,7 @@ from django.utils.six.moves.urllib.parse import urlsplit, urlunsplit | ||||
| from django.utils.translation import ugettext_lazy as _, ungettext_lazy | ||||
|  | ||||
| # Provide this import for backwards compatibility. | ||||
| from django.core.validators import EMPTY_VALUES | ||||
| from django.core.validators import EMPTY_VALUES  # NOQA | ||||
|  | ||||
|  | ||||
| __all__ = ( | ||||
|   | ||||
| @@ -15,7 +15,7 @@ from django.utils.html import conditional_escape, format_html | ||||
| from django.utils.translation import ugettext_lazy | ||||
| from django.utils.encoding import force_text, python_2_unicode_compatible | ||||
| from django.utils.safestring import mark_safe | ||||
| from django.utils import datetime_safe, formats, six | ||||
| from django.utils import formats, six | ||||
| from django.utils.six.moves.urllib.parse import urljoin | ||||
|  | ||||
| __all__ = ( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user