Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed the vestigal get_choices_from from ManyToMany relations.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@64 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 8acc6048e8fe17e1ba7e9df30aace2ef84d68276 1 parent 64c0ae5
@jacobian jacobian authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 django/core/meta.py
View
5 django/core/meta.py
@@ -2068,7 +2068,6 @@ def __init__(self, to, **kwargs):
num_in_admin=kwargs.pop('num_in_admin', 0),
related_name=kwargs.pop('related_name', None),
filter_interface=kwargs.pop('filter_interface', None),
- get_choices_from=kwargs.pop('get_choices_from', None),
limit_choices_to=kwargs.pop('limit_choices_to', None))
Field.__init__(self, **kwargs)
@@ -2124,11 +2123,11 @@ def get_related_field(self):
class ManyToMany:
def __init__(self, to, name, num_in_admin=0, related_name=None,
- filter_interface=None, get_choices_from=None, limit_choices_to=None):
+ filter_interface=None, limit_choices_to=None):
self.to, self.name = to._meta, name
self.num_in_admin = num_in_admin
self.related_name = related_name
- self.filter_interface, self.get_choices_from = filter_interface, get_choices_from
+ self.filter_interface = filter_interface
self.limit_choices_to = limit_choices_to or {}
self.edit_inline = False
Please sign in to comment.
Something went wrong with that request. Please try again.