From 603884505f84290d2379042169deae837e25b722 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sat, 2 Apr 2011 08:44:04 +0000 Subject: [PATCH] Advanced deprecations for function-based generic views git-svn-id: http://code.djangoproject.com/svn/django/trunk@15989 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/views/generic/create_update.py | 2 +- django/views/generic/date_based.py | 2 +- django/views/generic/list_detail.py | 2 +- django/views/generic/simple.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/django/views/generic/create_update.py b/django/views/generic/create_update.py index 8cf29eed4b..59760b4572 100644 --- a/django/views/generic/create_update.py +++ b/django/views/generic/create_update.py @@ -11,7 +11,7 @@ from django.contrib import messages import warnings warnings.warn( 'Function-based generic views have been deprecated; use class-based views instead.', - PendingDeprecationWarning + DeprecationWarning ) diff --git a/django/views/generic/date_based.py b/django/views/generic/date_based.py index 9c5bb270c6..acef71a7ff 100644 --- a/django/views/generic/date_based.py +++ b/django/views/generic/date_based.py @@ -10,7 +10,7 @@ from django.http import Http404, HttpResponse import warnings warnings.warn( 'Function-based generic views have been deprecated; use class-based views instead.', - PendingDeprecationWarning + DeprecationWarning ) diff --git a/django/views/generic/list_detail.py b/django/views/generic/list_detail.py index 58bc0082f9..22414ae216 100644 --- a/django/views/generic/list_detail.py +++ b/django/views/generic/list_detail.py @@ -7,7 +7,7 @@ from django.core.exceptions import ObjectDoesNotExist import warnings warnings.warn( 'Function-based generic views have been deprecated; use class-based views instead.', - PendingDeprecationWarning + DeprecationWarning ) diff --git a/django/views/generic/simple.py b/django/views/generic/simple.py index 2e2c4b638f..26df504c2b 100644 --- a/django/views/generic/simple.py +++ b/django/views/generic/simple.py @@ -5,7 +5,7 @@ from django.utils.log import getLogger import warnings warnings.warn( 'Function-based generic views have been deprecated; use class-based views instead.', - PendingDeprecationWarning + DeprecationWarning ) logger = getLogger('django.request')