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:
Adrian Holovaty 2006-02-04 00:27:22 +00:00
parent 6becd68eef
commit 98ff9555f8
1 changed files with 0 additions and 9 deletions

View File

@ -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]