My Complete_Book model has a foreign key to Book. Book is something I'm using from an installed app (so, an 'outside app') I would like to be able to edit/create a 'Book' directly from the Complete_Book admin. Is this possible? I haven't been able to use inlines, as my foreign key relationship is 'backwards' from what inline allows.
My problem is the same as that explained in this question (Django admin inline display but foreign key has opposite relation) but I cannot refactor my models as suggested in that answer. Is there any other way? Thank you for your help!
models.py
class Complete_Book(models.Model):
topic = models.ForeignKey('topic')
book = models.ForeignKey(Book)
is_primary = models.BooleanField()
subprogram_name = models.CharField(max_length = 256, blank=True)
class Book(models.Model):
title = models.CharField(max_length=512)
authors = models.CharField(max_length=2048)
year = models.PositiveIntegerField(max_length=4)