The docs say:
When you specify an intermediary model using the through argument to a ManyToManyField, the admin will not display a widget by default.
OK, but how about if I want a multiple select widget?
I have a model:
class Quotation(models.Model):
source = models.CharField()
sourceLink = models.URLField( blank=True)
text = models.TextField()
site = models.ManyToManyField(Site, through="QuoteSite" )
and an intermediary model:
class QuoteSite(models.Model):
entry = models.ForeignKey(Quotation)
site = models.ForeignKey(Site)
dateLastUsed = models.DateField(default=date(2000,01,01))
All I want to do is allow users in admin to select one or more sites for their quotation. I don't care whether they can edit the datelastUsed field in the intermediary model.
Is this impossible?