Suppose I have a django model of an Image:
from django.db import models
class Image(models.Model):
...
image = models.ImageField(upload_to='some_place')
image_url = models.URLField()
...
and I want that a user can upload either image
or its url
so I can not set both field
null=True
because I want atleast one of them to show in template. How can I do this?