Skip to content

Commit

Permalink
fixing typo issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Fantomas42 committed Sep 21, 2011
1 parent 5ce2992 commit 7db01c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zinnia/admin/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ class MPTTModelChoiceIterator(forms.models.ModelChoiceIterator):
def choice(self, obj):
"""Overriding choice method"""
tree_id = getattr(obj, getattr(self.queryset.model._meta,
'tree_id_atrr', 'tree_id'), 0)
'tree_id_attr', 'tree_id'), 0)
left = getattr(obj, getattr(self.queryset.model._meta,
'left_atrr', 'lft'), 0)
'left_attr', 'lft'), 0)
return super(MPTTModelChoiceIterator,
self).choice(obj) + ((tree_id, left),)

Expand Down

0 comments on commit 7db01c7

Please sign in to comment.