Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notifying users | changed_by #191

Open
tobyspark opened this issue May 27, 2020 · 2 comments
Open

Notifying users | changed_by #191

tobyspark opened this issue May 27, 2020 · 2 comments

Comments

@tobyspark
Copy link

The docs suggest that notification emails will be sent to whoever changed the object –

notify_user
Defines if notification e-mails will be send to user. When moderator approves or reject object changes then e-mail notification is send to user that changed this object. It will inform user if his changes were accepted or rejected and inform him why it was rejected or approved. Default: True

However, on investigation for this to happen the changed_by field of moderated_object needs to be set. In my use this was not being set, e.g. in both a DRF serializer and function-based view. I had to set and save this field subsequent to the model save. Am I missing something, or should I file a PR with a documentation change?

@DmytroLitvinov
Copy link
Collaborator

Hi @tobyspark ,
I might had the same unexpected behaviour but I do not remember exactly.
Currently, I am not working with that library now so if you could investigate the codebase and provide your opinion on that(with PR updates if needs) - that would be great!

@tobyspark
Copy link
Author

I think that keeping this issue open should make the issue visible to those with the symptoms, and it provides a route forward for them. And if they read this, they can comment with what their preferred course of action would be: note it in the documentation, or work up a PR.

There’s merit in either, I’m not sure if it’s possible to guarantee changed_by being set automatically due to the various contexts within which it might be set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants