Browse Source

Allow EFSS1 and EFSS2 doctypes

pull/172/head
Michael Olund 5 years ago
parent
commit
1df9402834
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      edivorce/apps/core/validators.py

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

@ -51,7 +51,7 @@ def valid_file_extension(file):
def valid_doc_type(value):
valid_codes = ['AAI', 'AFDO', 'AFTL', 'CSA', 'EFSS', 'MC', 'NCV', 'OFI', 'RDP']
valid_codes = ['AAI', 'AFDO', 'AFTL', 'CSA', 'EFSS1', 'EFSS2', 'MC', 'NCV', 'OFI', 'RDP']
if value.upper() not in valid_codes:
raise ValidationError(f'Doc type not supported: {value}. Valid codes: {", ".join(valid_codes)}')


Loading…
Cancel
Save