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

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