Exemplo n.º 1
0
    def deactivate(self):
        from manabi.apps.flashcards.signals import card_active_field_changed

        self.active = False
        self.save(update_fields=['active'])
        card_active_field_changed.send(self, instance=self)
Exemplo n.º 2
0
    def deactivate(self):
        from manabi.apps.flashcards.signals import card_active_field_changed

        self.active = False
        self.save(update_fields=['active'])
        card_active_field_changed.send(self, instance=self)
Exemplo n.º 3
0
    def activate(self):
        from manabi.apps.flashcards.signals import card_active_field_changed

        self.active = True
        self.save()
        card_active_field_changed.send(self, instance=self)
Exemplo n.º 4
0
    def activate(self):
        from manabi.apps.flashcards.signals import card_active_field_changed

        self.active = True
        self.save()
        card_active_field_changed.send(self, instance=self)