def fix_model_for_attributes(cls): post_init.connect(fixup_instance, sender=cls) pre_save.connect(attribute_model_pre_save, sender=cls) return cls