fix 500 when save edited annoucements (#708)
This commit is contained in:
parent
7c34ac78ed
commit
8f17b81912
|
@ -45,6 +45,7 @@ class AnnouncementCreate(CreateView):
|
||||||
class AnnouncementEdit(UpdateView):
|
class AnnouncementEdit(UpdateView):
|
||||||
model = Announcement
|
model = Announcement
|
||||||
template_name = "admin/announcement_edit.html"
|
template_name = "admin/announcement_edit.html"
|
||||||
|
success_url = Announcement.urls.admin_root
|
||||||
extra_context = {"section": "announcements"}
|
extra_context = {"section": "announcements"}
|
||||||
|
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
|
|
Loading…
Reference in New Issue