notorhot/models.py
def save(self, *args, **kwargs):
        """
        Upon :class:`Competition` instance creation, increments challenge count
        on both its candidates; if category is blank, sets a value.
        """
        if not self.id:
            self.left.increment_challenges()
            self.right.increment_challenges()
            
        try:
            self.category
        except CandidateCategory.DoesNotExist:
            self.category = self.left.category
            
        super(Competition, self).save(*args, **kwargs)

        Upon :class:`Competition` instance creation, increments challenge count
        on both its candidates; if category is blank, sets a value.
        
Upon :class:`Competition` instance creation, increments challenge count
on both its candidates; if category is blank, sets a value.
Upon : class : ` Competition ` instance creation increments challenge count on both its candidates ; if category is blank sets a value .
def save(self, *args, **kwargs):
        if not self.id:
            self.left.increment_challenges()
            self.right.increment_challenges()
        try:
            self.category
        except CandidateCategory.DoesNotExist:
            self.category = self.left.category
        super(Competition, self).save(*args, **kwargs)
def save ( self , * args , ** kwargs ) : if not self . id : self . left . increment_challenges ( ) self . right . increment_challenges ( ) try : self . category except CandidateCategory . DoesNotExist : self . category = self . left . category super ( Competition , self ) . save ( * args , ** kwargs )
Upon :class:`Competition` instance creation, increments challenge count
on both its candidates; if category is blank, sets a value.
Upon : class : ` Competition ` instance creation increments challenge count on both its candidates ; if category is blank sets a value .
"""
        Upon :class:`Competition` instance creation, increments challenge count
        on both its candidates; if category is blank, sets a value.
        """
self