mirror of
https://github.com/django/django.git
synced 2025-10-29 16:46:11 +00:00
Replaced property() usage with decorator in a couple places.
This commit is contained in:
committed by
Tim Graham
parent
a3abbe1fcb
commit
3c97ba2a0d
@@ -993,6 +993,7 @@ class QuerySet(object):
|
||||
# PUBLIC INTROSPECTION ATTRIBUTES #
|
||||
###################################
|
||||
|
||||
@property
|
||||
def ordered(self):
|
||||
"""
|
||||
Returns True if the QuerySet is ordered -- i.e. has an order_by()
|
||||
@@ -1004,7 +1005,6 @@ class QuerySet(object):
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
ordered = property(ordered)
|
||||
|
||||
@property
|
||||
def db(self):
|
||||
|
||||
Reference in New Issue
Block a user