4 changed files with 84 additions and 30 deletions
-
23apps/account/migrations/0010_schedulednotification_scheduled_time_and_more.py
-
31apps/account/models/notification.py
-
2apps/account/serializers/notification.py
-
4apps/account/tasks.py
@ -0,0 +1,23 @@ |
|||
# Generated by Django 4.2.30 on 2026-07-12 10:58 |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('account', '0009_schedulednotification_body_en_and_more'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AddField( |
|||
model_name='schedulednotification', |
|||
name='scheduled_time', |
|||
field=models.DateTimeField(blank=True, null=True, verbose_name='scheduled time'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='schedulednotification', |
|||
name='schedule_type', |
|||
field=models.CharField(choices=[('do_not_repeat', 'Do Not Repeat'), ('daily', 'Daily'), ('weekly', 'Weekly'), ('monthly', 'Monthly'), ('cron', 'Custom Cron Expression')], default='do_not_repeat', max_length=20, verbose_name='schedule type'), |
|||
), |
|||
] |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue