mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-25 00:30:59 +00:00
fix 500 when save edited annoucements (#708)
This commit is contained in:
parent
7c34ac78ed
commit
8f17b81912
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue