mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Refs #23919 -- Stopped inheriting from object to define new style classes.
This commit is contained in:
parent
a556396339
commit
cecc079168
293 changed files with 512 additions and 514 deletions
|
@ -15,7 +15,7 @@ from .admin import MediaInline, MediaPermanentInline, site as admin_site
|
|||
from .models import Category, Episode, EpisodePermanent, Media, PhoneNumber
|
||||
|
||||
|
||||
class TestDataMixin(object):
|
||||
class TestDataMixin:
|
||||
|
||||
@classmethod
|
||||
def setUpTestData(cls):
|
||||
|
@ -386,11 +386,11 @@ class NoInlineDeletionTest(SimpleTestCase):
|
|||
self.assertFalse(formset.can_delete)
|
||||
|
||||
|
||||
class MockRequest(object):
|
||||
class MockRequest:
|
||||
pass
|
||||
|
||||
|
||||
class MockSuperUser(object):
|
||||
class MockSuperUser:
|
||||
def has_perm(self, perm):
|
||||
return True
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue