NM – In my haste, I set up a many-to-many relationship when I really need a one-to-many (each sheet can have several links). Once I fixed it and made new migrations, it worked the way I expected. I’ll leave this here in case someone else has a similar problem.
class Publisher(models.Model):
publisher_text = models.CharField(max_length=150, unique=True)
class PurchaseLink(models.Model):
buylink_text = models.CharField("purchase link", max_length=1000)
publisher = models.ForeignKey(Publisher, on_delete=models.CASCADE, blank=False, null=True)
class Sheet(models.Model):
title_text = models.CharField(max_length=200, blank=False)
purchaselinks = models.ManyToManyField(PurchaseLink)
class SheetAdmin(admin.ModelAdmin):
fieldsets = [
(None, {'fields' : ['title_text']}),
inlines = [PurchaseLinkInline]
exclude = ('purchaselink')
form = SheetAdminForm