mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-08-13 17:57:44 +02:00
Fix #1054
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
|
||||
|
||||
from django.conf import settings
|
||||
from django.utils.translation import gettext as _
|
||||
|
||||
|
||||
# TODO: can we use the builtin Django validator instead?
|
||||
@ -32,4 +33,5 @@ def validate_file_extension(value):
|
||||
# should always allow that?
|
||||
if not (ext.lower() == '' or ext.lower() == '.'):
|
||||
raise ValidationError(
|
||||
'Unsupported file extension: %s.' % ext.lower())
|
||||
_('Unsupported file extension: ') + ext.lower()
|
||||
)
|
||||
|
Reference in New Issue
Block a user