Files
edx-platform/openedx/features/announcements/models.py
Brian Mesick e478975105 chore: Add missing PII annotations, update safelist
PII Annotations are very out of date, this commit adds most that were
missing in edx-platform, and some additional annotations to the
safelist. It is not comprehensive, several other upstream Open edX
packages also need to be updated. It also does not include removing
annotations that have been moved upstream, or been removed entirely.
Those are separate follow-on tasks.
2024-11-05 12:58:36 -05:00

23 lines
428 B
Python

"""
Models for Announcements
"""
from django.db import models
class Announcement(models.Model):
"""
Site-wide announcements to be displayed on the dashboard
.. no_pii:
"""
class Meta:
app_label = 'announcements'
content = models.CharField(max_length=1000, null=False, default="lorem ipsum")
active = models.BooleanField(default=True)
def __str__(self):
return self.content