Custom RelatedManager?

2015-05-22 Thread Erik Cederstrand
this? Can I create a custom RelatedManager for 'bars'? I can rewrite it as: Bar.prefetched.filter(mymodels=m, ...) but it feels more awkward. Thanks, Erik -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Django custom RelatedManager with ManyToManyField for multi-record inheritance

2014-09-03 Thread Dr. Sultan Alotaibi
I have the following object structure: class Car(models.Model): name = models.CharField(max_length=16) class Person(models.Model): name = models.CharField(max_length=32) cars = models.ManyToManyField(Car, through='Relationship') parent = models.ForeignKey('self', null=True,