building a client management application for myself in one application model, called client_management, i have class Client(models.Model): active = models.BooleanField(_('active client'), default=False) name = models.CharField(max_length=250) logo = models.ImageField(upload_to="logos") def __unicode__(self): return self.name
class ClientObject(models.Model): class Meta: abstract = True in my portfolio app i have: class Portfolio(ClientObject): client = models.ForeignKey(Client) active = models.BooleanField(_('active portfolio'), default=False) category = models.ForeignKey(PortfolioCategory) name = models.CharField(max_length=250) within the main client_management application's Client within the admin i want to list all apps, like Portfolio, that extend ClientObject whose client foreign key is the current Client. IE: within a Client within the Client_Management in the admin i'd get a link that says "add portfolio" perhaps with a list of portfolios already added. eventually i'd like to extend this with more client applications, like invoices and notes, etc... plus unknown future applications, so i'd like it to work without anything more than creating a class that extends ClientObject -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.