def save(self, *args, **kwargs):
ignore_default_check = kwargs.pop('<STR_LIT>', False)<EOL>if self.is_default != self._current_is_default and self.is_default is True:<EOL><INDENT>for status in self.__class__.objects.filter(is_default=True):<EOL><INDENT>status.is_default = False<EOL>status.save(ignore_default_check=True)<EOL><DEDENT><DEDENT>super(Status, self).save(*args, **kwargs)<EOL>if self.__class__.objects.filter(is_default=True).count() == <NUM_LIT:0> and not ignore_default_check:<EOL><INDENT>self.is_default = True<EOL>self.save()<EOL><DEDENT>self._current_is_default = self.is_default<EOL>
intercepts changes to is_default