Open KrYpTeD974 opened 2 weeks ago
Hi @KrYpTeD974, this does indeed look like a bug. Your suggested fix would work for updating individual preferences but not with the bulk endpoint.
I think adding the signal logic in the serializer here : https://github.com/agateblue/django-dynamic-preferences/blob/develop/dynamic_preferences/api/serializers.py#L64 would work for both use cases. I'd be happy to review and merge a pull request implementing this!
Indeed, ok fine ! I'll will try to submit a PR.
Hello,
It seems that I've found an issue with the
preference_updated
signal in the latest version of django-dynamic-preferences.Problem: The preference_updated signal is not triggered when I update a preference using the
PreferenceViewSet
orPerInstancePreferenceViewSet
.Steps to reproduce:
Register a signal receiver:
PreferenceViewSet
to update a specific instance preference.Expected behavior: I expected the
preference_updated signal
to be triggered, as it seems to be the case for other preference update methods.Possible solution Add the following code to the
PreferencesViewSet
:Environment: