mirror of
https://github.com/django/django.git
synced 2025-12-02 08:05:58 +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
|
|
@ -43,7 +43,7 @@ def get_field_names_from_opts(opts):
|
|||
))
|
||||
|
||||
|
||||
class RawQuery(object):
|
||||
class RawQuery:
|
||||
"""
|
||||
A single raw SQL query
|
||||
"""
|
||||
|
|
@ -111,7 +111,7 @@ class RawQuery(object):
|
|||
self.cursor.execute(self.sql, params)
|
||||
|
||||
|
||||
class Query(object):
|
||||
class Query:
|
||||
"""
|
||||
A single SQL query.
|
||||
"""
|
||||
|
|
@ -2049,7 +2049,7 @@ def is_reverse_o2o(field):
|
|||
return field.is_relation and field.one_to_one and not field.concrete
|
||||
|
||||
|
||||
class JoinPromoter(object):
|
||||
class JoinPromoter:
|
||||
"""
|
||||
A class to abstract away join promotion problems for complex filter
|
||||
conditions.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue