1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #18033 -- Removed function-based generic views, as per official deprecation timeline. Rest in peace! Thanks Anssi Kääriäinen for the review.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17937 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Claude Paroz
2012-04-25 19:17:47 +00:00
parent ea9dc9f4b0
commit 1858e47672
38 changed files with 46 additions and 3335 deletions

View File

@@ -1,5 +1,3 @@
import warnings
from django.contrib.auth.models import User
from django.test import TestCase
@@ -8,14 +6,6 @@ class SpecialHeadersTest(TestCase):
fixtures = ['data.xml']
urls = 'regressiontests.special_headers.urls'
def setUp(self):
self.save_warnings_state()
warnings.filterwarnings('ignore', category=DeprecationWarning,
module='django.views.generic.list_detail')
def tearDown(self):
self.restore_warnings_state()
def test_xheaders(self):
user = User.objects.get(username='super')
response = self.client.get('/special_headers/article/1/')