Hello I am currently working on a django project, in one of my Models I have a file upload and image upload, with the parameters of these two fields both are set to blank=True, however there is a stipulatation with this and it is that field can only be blank if one of the two is not, so for example, if the imagefield is complete then the user does not have to upload a file, and if the filefield is complete then user does not need to upload an image.
My problem is I am struggling to figure out the logic, this is within the admin section so I understand I will have the overwrite the clean data. Can anyone help?