Advanced deprecations for function-based generic views

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15989 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2011-04-02 08:44:04 +00:00
parent d60ae0b721
commit 603884505f
4 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ from django.contrib import messages
import warnings import warnings
warnings.warn( warnings.warn(
'Function-based generic views have been deprecated; use class-based views instead.', 'Function-based generic views have been deprecated; use class-based views instead.',
PendingDeprecationWarning DeprecationWarning
) )

View File

@ -10,7 +10,7 @@ from django.http import Http404, HttpResponse
import warnings import warnings
warnings.warn( warnings.warn(
'Function-based generic views have been deprecated; use class-based views instead.', 'Function-based generic views have been deprecated; use class-based views instead.',
PendingDeprecationWarning DeprecationWarning
) )

View File

@ -7,7 +7,7 @@ from django.core.exceptions import ObjectDoesNotExist
import warnings import warnings
warnings.warn( warnings.warn(
'Function-based generic views have been deprecated; use class-based views instead.', 'Function-based generic views have been deprecated; use class-based views instead.',
PendingDeprecationWarning DeprecationWarning
) )

View File

@ -5,7 +5,7 @@ from django.utils.log import getLogger
import warnings import warnings
warnings.warn( warnings.warn(
'Function-based generic views have been deprecated; use class-based views instead.', 'Function-based generic views have been deprecated; use class-based views instead.',
PendingDeprecationWarning DeprecationWarning
) )
logger = getLogger('django.request') logger = getLogger('django.request')