mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Reordering questions with drag'n'drop (#1433)
* Reordering questions with drag'n'drop
* Add permission check
* Test permissions for question reordering
* Handle malformed requests for question reordering
* Show first up arrow and last down arrow
* Provide page offset
* Revert "Provide page offset"
This reverts commit 8090bd573f.
* Reorder questions endpoint with pagination support
* Rudimentary test for reordering endpoint
* Make reordering questions atomic
* cache questions
* Properly support pagination for reorder_questions
* appease linter
* Fix test
This commit is contained in:
@@ -249,6 +249,9 @@ event_permission_urls = [
|
||||
# ("can_change_items", "questions/", 200),
|
||||
("can_change_items", "questions/2/", 404),
|
||||
("can_change_items", "questions/2/delete", 404),
|
||||
("can_change_items", "questions/2/up", 404),
|
||||
("can_change_items", "questions/2/down", 404),
|
||||
("can_change_items", "questions/reorder", 400),
|
||||
("can_change_items", "questions/add", 200),
|
||||
# ("can_change_items", "quotas/", 200),
|
||||
("can_change_items", "quotas/2/change", 404),
|
||||
|
||||
Reference in New Issue
Block a user