mirror of
https://github.com/django/django.git
synced 2025-08-08 12:58:37 +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
|
@ -34,7 +34,7 @@ def subclasses(cls):
|
|||
yield item
|
||||
|
||||
|
||||
class QueryWrapper(object):
|
||||
class QueryWrapper:
|
||||
"""
|
||||
A type that indicates the contents are an SQL fragment and the associate
|
||||
parameters. Can be used to pass opaque data to a where-clause, for example.
|
||||
|
@ -90,7 +90,7 @@ class Q(tree.Node):
|
|||
return clause
|
||||
|
||||
|
||||
class DeferredAttribute(object):
|
||||
class DeferredAttribute:
|
||||
"""
|
||||
A wrapper for a deferred-loading field. When the value is read from this
|
||||
object the first time, the query is executed.
|
||||
|
@ -130,7 +130,7 @@ class DeferredAttribute(object):
|
|||
return None
|
||||
|
||||
|
||||
class RegisterLookupMixin(object):
|
||||
class RegisterLookupMixin:
|
||||
|
||||
@classmethod
|
||||
def _get_lookup(cls, lookup_name):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue