Replaced property() usage with decorator in a couple places.
This commit is contained in:
parent
a3abbe1fcb
commit
3c97ba2a0d
|
@ -560,9 +560,9 @@ class ModelAdmin(BaseModelAdmin):
|
||||||
]
|
]
|
||||||
return urlpatterns
|
return urlpatterns
|
||||||
|
|
||||||
|
@property
|
||||||
def urls(self):
|
def urls(self):
|
||||||
return self.get_urls()
|
return self.get_urls()
|
||||||
urls = property(urls)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def media(self):
|
def media(self):
|
||||||
|
|
|
@ -993,6 +993,7 @@ class QuerySet(object):
|
||||||
# PUBLIC INTROSPECTION ATTRIBUTES #
|
# PUBLIC INTROSPECTION ATTRIBUTES #
|
||||||
###################################
|
###################################
|
||||||
|
|
||||||
|
@property
|
||||||
def ordered(self):
|
def ordered(self):
|
||||||
"""
|
"""
|
||||||
Returns True if the QuerySet is ordered -- i.e. has an order_by()
|
Returns True if the QuerySet is ordered -- i.e. has an order_by()
|
||||||
|
@ -1004,7 +1005,6 @@ class QuerySet(object):
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
ordered = property(ordered)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def db(self):
|
def db(self):
|
||||||
|
|
Loading…
Reference in New Issue