Changes between Initial Version and Version 1 of Ticket #27263, comment 10
- Timestamp:
- Sep 26, 2016, 7:01:26 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27263, comment 10
initial v1 3 3 As a workaround I can just do a set of calls in form's `clean_import_file` method like that: 4 4 5 {{{#!python 5 6 def clean_import_file(self): 6 7 import_file = self.cleaned_data.get('import_file') … … 9 10 FileTypeValidator(extensions=('xlsx',))(import_file) 10 11 return import_file 12 }}} 11 13 12 14 But I don't like this approach, even code is DRY, validators is not a part of configuration anymore.