Say I have an Image model
class Image(...
# store file info
image = ImageField(...
# store link info
url = URLField(...
# storing either image or url is okay
# storing both is NOT okay
# storing neither is NOT okay
I want the user to be able to upload an image file or submit an image url to link to. Is there a way for the model to require the user to have at least one of the two fields?