Changeset 4439c52
- Timestamp:
- Jul 6, 2014, 11:38:15 PM (11 years ago)
- Branches:
- master
- Children:
- 45a52c6, 2b31097
- Parents:
- 0445831
- git-author:
- Alex Dehnert <adehnert@…> (07/06/14 23:38:15)
- git-committer:
- Alex Dehnert <adehnert@…> (07/06/14 23:38:15)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
remit/vouchers/views.py
r5f82b6c r4439c52 1 # -*- coding: utf-8 -*- 1 2 import vouchers.models 2 3 from vouchers.models import ReimbursementRequest, Documentation … … 64 65 contenttype = f.content_type 65 66 if ext != 'pdf': 66 raise django.forms.ValidationError( "Only PDF files are accepted ---you submitted a .%s file" % (ext, ))67 raise django.forms.ValidationError(u"Only PDF files are accepted – you submitted a .%s file" % (ext, )) 67 68 elif contenttype != 'application/pdf': 68 raise django.forms.ValidationError( "Only PDF files are accepted ---you submitted a %s file" % (contenttype, ))69 raise django.forms.ValidationError(u"Only PDF files are accepted – you submitted a %s file" % (contenttype, )) 69 70 else: 70 71 return f
Note: See TracChangeset
for help on using the changeset viewer.