Skip to content

Commit

Permalink
events: Remove "color" from event_dict
Browse files Browse the repository at this point in the history
We are going to feed internal and external events as separat event
sources to the FullCalendar. It is more efficient to specify the color
for the whole event source. So remove it from what get_dict returns for
an event.
  • Loading branch information
donald committed Mar 26, 2021
1 parent c34085f commit aadb33b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mpicms/events/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ def get_dict(self, request=None):
'start': self.start.isoformat(),
'end': self.end.isoformat() if self.end else None,
'url': self.get_url(request=request),
'color': '#aa0000' if self.external else '#006c66'
}

def clean(self):
Expand Down

0 comments on commit aadb33b

Please sign in to comment.