Browse Source

Fixed grammar error from Chris's message (DIV-1157)

pull/170/head
Michael Olund 5 years ago
parent
commit
e9f2251054
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      edivorce/apps/core/serializer.py
  2. +1
    -1
      vue/src/components/Uploader/Uploader.vue

+ 1
- 1
edivorce/apps/core/serializer.py View File

@ -45,5 +45,5 @@ class DocumentSerializer(serializers.ModelSerializer):
try:
response.save()
except IntegrityError:
raise ValidationError("This file appears to have already been uploaded with for this document. Duplicate filename: " + filename)
raise ValidationError("This file appears to have already been uploaded for this document. Duplicate filename: " + filename)
return response

+ 1
- 1
vue/src/components/Uploader/Uploader.vue View File

@ -190,7 +190,7 @@ export default {
this.files.forEach((file) => {
// prevent duplicates (based on filename and length)
if (file.name === newFile.name && file.length === newFile.length) {
this.showError('This file appears to have already been uploaded with for this document. Duplicate filename: ' + newFile.name);
this.showError('This file appears to have already been uploaded for this document. Duplicate filename: ' + newFile.name);
return prevent();
}
});


Loading…
Cancel
Save