- Add announcements view using JSX to the dashboard sidebar - Create a new maintenance interface to edit and manage announcements - Adds an override to main.html template to include new skip links - Add plugins required for announcements to TinyMCE This is motivated by a desire to have system wide messages for students that show on the dashboard. Enabled with FEATURES['ENABLE_ANNOUNCEMENTS']. Global staff are allowed to edit from the studio maintenance view.
18 lines
413 B
Python
18 lines
413 B
Python
"""
|
|
Models for Announcements
|
|
"""
|
|
|
|
from django.db import models
|
|
|
|
|
|
class Announcement(models.Model):
|
|
"""Site-wide announcements to be displayed on the dashboard"""
|
|
class Meta(object):
|
|
app_label = 'announcements'
|
|
|
|
content = models.CharField(max_length=1000, null=False, default="lorem ipsum")
|
|
active = models.BooleanField(default=True)
|
|
|
|
def __unicode__(self):
|
|
return self.content
|