Add support for multiple linked_orderpositions on reusable media#5666
Open
Add support for multiple linked_orderpositions on reusable media#5666
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #5666 +/- ##
==========================================
+ Coverage 78.55% 78.57% +0.02%
==========================================
Files 471 472 +1
Lines 67755 67883 +128
==========================================
+ Hits 53223 53341 +118
- Misses 14532 14542 +10
🚀 New features to boost your workflow:
|
raphaelm
reviewed
Dec 9, 2025
src/pretix/control/templates/pretixcontrol/organizers/reusable_medium.html
Show resolved
Hide resolved
Contributor
eac917b to
0fa2da5
Compare
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


This PR adds a ManyToManyField on ReusableMedium for linked_orderpositions. It keeps linked_orderposition in the API for backwards-compatibility. If the medium has more than one linked_orderposition, then the API does not output property
linked_orderpositionfor that medium and blocks PATCH requests withlinked_orderpositionas invalid.It also adds a field secret to the medium, so in the future, the medium can be claimed by a customer through the identifier and secret.
internal note: update & merge pretixpos-android!361 after merging this pr