Skip to content

Commit

Permalink
get rid of useless method
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-mri committed Mar 7, 2017
1 parent 52eb585 commit 58e70ba
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions django_filters/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,10 +400,7 @@ def _get_choices(self):
iterator = itertools.chain([(self.null_value, self.null_label)], iterator)
return iterator

def _set_choices(self, value):
return super(NullModelChoiceField, self)._set_choices(value)

choices = property(_get_choices, _set_choices)
choices = property(_get_choices, forms.ModelChoiceField._set_choices)

def to_python(self, value):
if value == self.null_value:
Expand Down

0 comments on commit 58e70ba

Please sign in to comment.