From 8f17b8191277fd4330a897a0166e7a87c97e62d2 Mon Sep 17 00:00:00 2001 From: Henri Dickson <90480431+alphatownsman@users.noreply.github.com> Date: Tue, 21 May 2024 13:55:17 -0400 Subject: [PATCH] fix 500 when save edited annoucements (#708) --- users/views/admin/announcements.py | 1 + 1 file changed, 1 insertion(+) diff --git a/users/views/admin/announcements.py b/users/views/admin/announcements.py index 7d1fd67..81382bd 100644 --- a/users/views/admin/announcements.py +++ b/users/views/admin/announcements.py @@ -45,6 +45,7 @@ class AnnouncementCreate(CreateView): class AnnouncementEdit(UpdateView): model = Announcement template_name = "admin/announcement_edit.html" + success_url = Announcement.urls.admin_root extra_context = {"section": "announcements"} def get_context_data(self, **kwargs):