Skip to content

Commit

Permalink
Just realized i included a bad kwarg
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Jul 12, 2012
1 parent b3b56f7 commit cd1c4b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions genericm2m/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,10 @@ def generic_objects(self):


class RelatedObjectsDescriptor(object):
def __init__(self, model=None, from_field='parent', to_field='object', symmetrical=False):
def __init__(self, model=None, from_field='parent', to_field='object'):
self.related_model = model or RelatedObject
self.from_field = self.get_related_model_field(from_field)
self.to_field = self.get_related_model_field(to_field)
self.symmetrical = symmetrical

def get_related_model_field(self, field_name):
opts = self.related_model._meta
Expand Down

0 comments on commit cd1c4b1

Please sign in to comment.