magic-removal: Removed db.models.related.RelatedObject.get_list -- it wasn't being used
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2263 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
6becd68eef
commit
98ff9555f8
|
@ -41,15 +41,6 @@ class RelatedObject(object):
|
|||
"""
|
||||
return data # TODO
|
||||
|
||||
def get_list(self, parent_instance=None):
|
||||
"Get the list of this type of object from an instance of the parent class."
|
||||
if parent_instance != None:
|
||||
func_name = 'get_%s_list' % self.OLD_get_accessor_name()
|
||||
func = getattr(parent_instance, func_name)
|
||||
return func()
|
||||
else:
|
||||
return []
|
||||
|
||||
def editable_fields(self):
|
||||
"Get the fields in this class that should be edited inline."
|
||||
return [f for f in self.opts.fields + self.opts.many_to_many if f.editable and f != self.field]
|
||||
|
|
Loading…
Reference in New Issue