File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -87,3 +87,19 @@ def __call__(self, file):
87
87
_ ('Please keep the total uploaded files under %(total_size)s. With this file, the total would be %(exceed_size)s.' %
88
88
{'total_size' : filesizeformat (self .quota .max_usage ), 'exceed_size' : filesizeformat (self .quota .current_usage + file_size )})
89
89
)
90
+
91
+ try :
92
+ from south .modelsinspector import add_introspection_rules
93
+ add_introspection_rules ([
94
+ (
95
+ [ValidatedFileField ],
96
+ [],
97
+ {
98
+ "content_types" : ["content_types" , {"default" : []}],
99
+ "max_upload_size" : ["max_upload_size" , {"default" : 0 }],
100
+ "mime_lookup_length" : ["mime_lookup_length" , {"default" : 4096 }],
101
+ },
102
+ ),
103
+ ], ["^validatedfile\.fields\.ValidatedFileField" ])
104
+ except ImportError :
105
+ pass
You can’t perform that action at this time.
0 commit comments