joanie
joanie copied to clipboard
🚧 notification model and signals for wishlist feature
This PR is the second part of the issue https://github.com/openfun/joanie/issues/196 (feature user course wishlist)
This PR adds:
- model Notification which represents a user notification about a subject according an action on a related object
- three signals: post_save on CourseRun, post_save on ProductTargetCourseRelation and m2m_changed post_add on Product.target_courses. the signal generate a notification entity that need to be sent
It's related to the comment on this PR https://github.com/openfun/joanie/pull/207#discussion_r1103328796