Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/bendavis78/django-formhelper
Browse files Browse the repository at this point in the history
  • Loading branch information
bendavis78 committed Jul 4, 2011
2 parents fd39a35 + a595b6e commit f9e5dfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions formhelper/templatetags/formhelper.py
Expand Up @@ -11,10 +11,10 @@
def field_error(field):
if field.errors:
err = field.errors[0]
if err == unicode(field.field.default_error_messages.get('required')):
if err == unicode(field.field.error_messages.get('required')):
err = '%s is required' % field.label
else:
err = '%s: ' % field.label
err = '%s: %s' % (field.label, err)
return err
return ''

Expand Down

0 comments on commit f9e5dfb

Please sign in to comment.