Skip to content

Commit

Permalink
Merge pull request #100 from adrienbrunet/master
Browse files Browse the repository at this point in the history
Update field_mixins.py
  • Loading branch information
jrief committed Sep 25, 2014
2 parents 572887f + 1a09cb5 commit 63100ce
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions djangular/forms/field_mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,10 @@ def get_input_required_errors(self):

def get_min_max_length_errors(self):
errors = []
try:
if getattr(self, 'min_length', None):
self.widget.attrs['ng-minlength'] = self.min_length
except AttributeError:
pass
try:
if getattr(self, 'max_length', None):
self.widget.attrs['ng-maxlength'] = self.max_length
except AttributeError:
pass
for item in self.validators:
if getattr(item, 'code', None) == 'min_length':
message = ungettext_lazy(
Expand Down

0 comments on commit 63100ce

Please sign in to comment.