Skip to content

Commit

Permalink
Improve method name
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamu committed Feb 20, 2017
1 parent b0a5b4e commit f217fac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions formly/models.py
Expand Up @@ -341,11 +341,11 @@ def form_field(self):
else:
choices = [(x.pk, x.label) for x in self.choices.all()]

field_class, field_kwargs = self._set_field_class(choices)
field_class, field_kwargs = self._get_field_class(choices)
field = field_class(**field_kwargs)
return field

def _set_field_class(self, choices):
def _get_field_class(self, choices):
"""
Set field_class and field kwargs based on field type
"""
Expand Down

0 comments on commit f217fac

Please sign in to comment.