When the <pretix-widget> was hosted on a separate domain, the
source code URL was pointing to the wrong page. This updates the URL to
always point to the Pretix installation.
With #2089, PluginConfig.installed() is also called for newly created events.
However, the passed event argument is still not committed. The plugins
cannot use the event to insert or select objects, as it does not have an
ID yet.
With b260cca412, team provisioning has
been disabled for users that are staff. However, this leads to strange
UX, as a new event created by a staff member, not currently in a staff
session resulted in a 404 directly after creation.
The PR updates this requirement to not need to select a team, only when
a staff session is active.
The events API is paginated with 50 events. When searching for a
specific event within a large Pretix installations UX becomes very bad.
Using this filter users are able to quickly find their event by slug or
their name/location in any language.
* Make next url authentication backend dependent
* Rename authentication next_url to get_next_url.
* Add test for custom authentication backend get_next_url.
* Fix typo in docstring of authentication backend get_next_url.
* Remove check password for event deletion, instead require recent login.
* Reauthenticate for backends using authentication_url.
* Require recent login for data shredder and prompt slug instead of password.
* Fix tests for recent login required on event delete and data shred.
* Pull request remarks for recent login required for event delete and data shred.
* Remove unused imported check_password.
* Event creation: Add option to select existing team instead of provisioning.
* Event creation: disallow event team provisioning on organizer level.
* Event team provisioning: update default setting location and display strings.
* Update src/pretix/control/views/main.py
Co-Authored-By: Raphael Michel <mail@raphaelmichel.de>