In Django is there a way to force admin users to choose to fill one of a few ForeignKeys and not more than one?
I have a model something like :
class URL(models.Model): ... links = models.URLField(_('Google Links'),verify_exists=True,unique=True) project = models.ForeignKey(Project,blank=True,null=True) category = models.ForeignKey(Category,blank=True,null=True) person = models.ForeignKey(ExternalPerson,blank=True,null=True) ...
I want the admin user to choose one of the Foreignkeys project,category or person. Or should I organize the model differently?