This pull request implements a notification system designed to keep investors updated on the activity of startups they follow. A new Notification model was created to store alert information for events like profile updates and new posts. The system triggers notifications through a signal (notify_investors_on_startup_update), which listens for changes on Startup instances. When a startup profile is created or updated, the signal generates notifications for each following investor and triggers an asynchronous task for additional processing.
A new API endpoint (InvestorNotificationsAPIView) allows investors to retrieve unread notifications with GET /api/investor/notifications, providing timely information on their saved startups. This endpoint utilizes the NotificationSerializer to format notification data for the response.
This pull request implements a notification system designed to keep investors updated on the activity of startups they follow. A new Notification model was created to store alert information for events like profile updates and new posts. The system triggers notifications through a signal (notify_investors_on_startup_update), which listens for changes on Startup instances. When a startup profile is created or updated, the signal generates notifications for each following investor and triggers an asynchronous task for additional processing.
A new API endpoint (
InvestorNotificationsAPIView
) allows investors to retrieve unread notifications withGET /api/investor/notifications
, providing timely information on their saved startups. This endpoint utilizes theNotificationSerializer
to format notification data for the response.