Skip to content

Commit

Permalink
fix 500 when save edited annoucements
Browse files Browse the repository at this point in the history
  • Loading branch information
alphatownsman committed Apr 19, 2024
1 parent 7c34ac7 commit a65d4ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions users/views/admin/announcements.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class Meta:
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):
Expand Down

0 comments on commit a65d4ef

Please sign in to comment.