mirror of
https://github.com/django/django.git
synced 2025-09-24 19:23:03 +00:00
Removed several deprecated features for 1.0 (refs #7830):
* "simple" cache backend * `ObjectPaginator` * `edit_inline_type` argument for `ForeignKey` fields * `QOperator`, `QNot`, `QAnd` and `QOr` * `maxlength` argument git-svn-id: http://code.djangoproject.com/svn/django/trunk@8191 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
cbbd54d5cd
commit
351a3ca154
17 changed files with 10 additions and 464 deletions
|
@ -757,22 +757,6 @@ class EmptyQuerySet(QuerySet):
|
|||
yield iter([]).next()
|
||||
|
||||
|
||||
# QOperator, QNot, QAnd and QOr are temporarily retained for backwards
|
||||
# compatibility. All the old functionality is now part of the 'Q' class.
|
||||
class QOperator(Q):
|
||||
def __init__(self, *args, **kwargs):
|
||||
warnings.warn('Use Q instead of QOr, QAnd or QOperation.',
|
||||
DeprecationWarning, stacklevel=2)
|
||||
super(QOperator, self).__init__(*args, **kwargs)
|
||||
|
||||
QOr = QAnd = QOperator
|
||||
|
||||
|
||||
def QNot(q):
|
||||
warnings.warn('Use ~q instead of QNot(q)', DeprecationWarning, stacklevel=2)
|
||||
return ~q
|
||||
|
||||
|
||||
def get_cached_row(klass, row, index_start, max_depth=0, cur_depth=0,
|
||||
requested=None):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue