Skip to content

Commit

Permalink
Show changes when events' panels are changed
Browse files Browse the repository at this point in the history
We were keeping events synced with their panels, but they weren't showing up in the schedule changes list because we weren't also synced the last_updated value. This should fix that!
  • Loading branch information
kitsuta committed Jan 16, 2025
1 parent 033ffec commit 3582077
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion uber/models/panels.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,13 @@ class PanelApplication(MagModel):

@presave_adjustment
def update_event_info(self):
if self.event:
if self.event and any([getattr(self.event, key, '') != getattr(self, key, '') for key in [
'name', 'description', 'public_description', 'track']]):
self.event.name = self.name
self.event.description = self.description
self.event.public_description = self.public_description
self.event.track = self.track
self.event.last_updated = self.last_updated

@presave_adjustment
def set_default_dept(self):
Expand Down

0 comments on commit 3582077

Please sign in to comment.