Override Django ImageField validation
问题 I am trying to create a form where users will be allowed to upload any image file + SWF files. Django's ImageField does not support SWF so I need to override it. What I want to do is to check if the file is SWF, if True, return it. If it's not SWF, call the original method which will take care of the file validation. However, I am not sure how to implement that. Here is an example of what I am trying to achieve, but it does not work: from hexagonit import swfheader class SwfImageField(forms