This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AbstractBase(models.Model): | |
foo = somefield | |
class Base(AbstractBase): | |
c1 = models.OneToOneField('C1', null=True, blank=True) | |
c2 = models.OneToOneField('C2', null=True, blank=True) | |
def c(self): | |
#only one additional query to get the base | |
if self.c1_id: |