mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #28708 -- Added constants to detect the Python version.
This commit is contained in:
@@ -19,6 +19,7 @@ from django.urls import reverse
|
||||
from django.utils.encoding import force_bytes
|
||||
from django.utils.functional import SimpleLazyObject
|
||||
from django.utils.safestring import mark_safe
|
||||
from django.utils.version import PY36
|
||||
from django.views.debug import (
|
||||
CLEANSED_SUBSTITUTE, CallableSettingWrapper, ExceptionReporter,
|
||||
cleanse_setting, technical_500_response,
|
||||
@@ -31,8 +32,6 @@ from ..views import (
|
||||
sensitive_method_view, sensitive_view,
|
||||
)
|
||||
|
||||
PY36 = sys.version_info >= (3, 6)
|
||||
|
||||
|
||||
class User:
|
||||
def __str__(self):
|
||||
|
||||
Reference in New Issue
Block a user