Skip to content

Emit signal on active change #23

@BojanKogoj

Description

@BojanKogoj

active is being changed through update(), which does not emit a signal that I need. Would it make sense to add signal to update?

Something similar to the following in https://github.com/xtrinch/fcm-django/blob/master/fcm_django/models.py#L38

class FCMDeviceQuerySet(models.query.QuerySet):

    def update(self, **kwargs):
        post_save.send(self.__class__, **kwargs)  # some signal
        return super(FCMDeviceQuerySet, self).update(**kwargs)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions