fix 500 when save edited annoucements (#708)

This commit is contained in:
Henri Dickson 2024-05-21 13:55:17 -04:00 committed by GitHub
parent 7c34ac78ed
commit 8f17b81912
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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):