mirror of
https://github.com/ae-utbm/sith.git
synced 2026-06-04 23:29:24 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fd133dd56e |
+1
-1
@@ -170,7 +170,7 @@ class NewsUpdateView(PermissionOrAuthorRequiredMixin, UpdateView):
|
||||
form_class = NewsForm
|
||||
template_name = "com/news_edit.jinja"
|
||||
pk_url_kwarg = "news_id"
|
||||
permission_required = "com.edit_news"
|
||||
permission_required = ["com.edit_news", "com.moderate_news"]
|
||||
|
||||
def form_valid(self, form):
|
||||
response = super().form_valid(form) # Does the saving part
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@ prod = [
|
||||
]
|
||||
dev = [
|
||||
"django-debug-toolbar>=6.3.0,<7",
|
||||
"ipython>=9.14.0,<10.0.0",
|
||||
"ipython>=9.13.0,<10.0.0",
|
||||
"pre-commit>=4.6.0,<5.0.0",
|
||||
"ruff>=0.15.13,<1.0.0",
|
||||
"djhtml>=3.0.11,<4.0.0",
|
||||
|
||||
Reference in New Issue
Block a user