-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
💻 Remove modal for make teacher as admin #5631
Conversation
… admin-autosave
for more information, see https://pre-commit.ci
website/admin.py
Outdated
@@ -173,58 +174,48 @@ def get_admin_achievements_page(self, user): | |||
page_title=gettext("title_admin"), | |||
) | |||
|
|||
@route("/mark-as-teacher", methods=["POST"]) | |||
def mark_as_teacher(self): | |||
@route("/mark-as-teacher/<username_teacher>", methods=["GET"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the problem it's happening because these calls were switched from GET to POST. And, I would prefer these calls to be POST, because we are not getting any data from the server, just modifying, which is exactly what post calls are meant for.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've changed it back to post!
Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork). |
As requested by @Felienne : remove modal for accepting teacher requests and remove reloading the page every time