Skip to content

Commit

Permalink
Updates verbose description for notification types (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
djperrefort authored Nov 14, 2024
1 parent 85a549b commit 77a833a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.1.2 on 2024-11-14 16:15

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('notifications', '0005_remove_preference_allocation_usage_thresholds_and_more'),
]

operations = [
migrations.AlterField(
model_name='notification',
name='notification_type',
field=models.CharField(choices=[('GM', 'General Message'), ('RE', 'Upcoming Request Expiration'), ('RD', 'Request Past Expiration')], max_length=2),
),
]
4 changes: 2 additions & 2 deletions keystone_api/apps/notifications/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class NotificationType(models.TextChoices):
"""Enumerated choices for the `notification_type` field."""

general_message = 'GM', 'General Message'
request_expiring = 'RE', 'Request Past Expiration'
request_expired = 'RD', 'Upcoming Request Expiration'
request_expiring = 'RE', 'Upcoming Request Expiration'
request_expired = 'RD', 'Request Past Expiration'

time = models.DateTimeField(auto_now_add=True)
read = models.BooleanField(default=False)
Expand Down

0 comments on commit 77a833a

Please sign in to comment.