Permalink
Browse files

Refactored get_query_set_class() to DatabaseOperations.query_set_clas…

…s(). Also added BaseDatabaseFeatures.uses_custom_queryset. Refs #5106

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5976 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 6d8e609 commit e13ea3c70dc1a217d4e88e0a66f4311167f156c3 @adrianholovaty adrianholovaty committed Aug 20, 2007
Showing with 251 additions and 243 deletions.
  1. +10 −0 django/db/backends/__init__.py
  2. +238 −240 django/db/backends/oracle/base.py
  3. +3 −3 django/db/models/query.py
@@ -48,6 +48,7 @@ class BaseDatabaseFeatures(object):
supports_constraints = True
supports_tablespaces = False
uses_case_insensitive_names = False
+ uses_custom_queryset = False
class BaseDatabaseOperations(object):
"""
@@ -144,6 +145,15 @@ def pk_default_value(self):
"""
return 'DEFAULT'
+ def query_set_class(self, DefaultQuerySet):
+ """
+ Given the default QuerySet class, returns a custom QuerySet class
+ to use for this backend. Returns None if a custom QuerySet isn't used.
+ See also BaseDatabaseFeatures.uses_custom_queryset, which regulates
+ whether this method is called at all.
+ """
+ return None
+
def quote_name(self, name):
"""
Returns a quoted version of the given table, index or column name. Does
Oops, something went wrong. Retry.

0 comments on commit e13ea3c

Please sign in to comment.