feat(notification): added notification model and admin

This commit is contained in:
sankalp committed 2025-12-11 21:02:16 +05:45
1 parent adfd2bf63f
commit 466d4b868a
13 files changed
+419 -1

No files matched your search

@@ -0,0 +1,10 @@
from django.core.management.base import BaseCommand
from src.models.notifications import check_and_send_notifications
class Command(BaseCommand):
help = 'Checks for upcoming deadlines and sends notifications.'
def handle(self, *args, **options):
self.stdout.write("Checking for notifications...")
check_and_send_notifications()
self.stdout.write(self.style.SUCCESS("Successfully sent notifications."))