Raphael Michel
828f4e3168
Fix isort and docs test
2024-07-01 11:46:46 +02:00
Raphael Michel
e691afdd34
Add auto-generated migration
2024-07-01 11:26:55 +02:00
Raphael Michel
add90b08ec
Export: Fix sales channels in JSON export
2024-07-01 11:22:18 +02:00
Raphael Michel
e5725d6d33
Fix statistics view (PRETIXEU-AB5)
2024-07-01 08:51:23 +02:00
Raphael Michel
4fb5c6bef0
New implementation of sales channels ( #4111 )
...
Co-authored-by: Martin Gross <gross@rami.io >
2024-06-30 19:24:30 +02:00
Raphael Michel
95511b0330
Remove X-XSS-Protection, no longer supported by any browser
2024-06-29 19:25:34 +02:00
Raphael Michel
f0a06cd9fe
Replace SCSS compilation with CSS variables ( #4191 )
...
* Replace SCSS compilation with CSS variables
* Update tests
* Update src/pretix/presale/style.py
Co-authored-by: Mira <weller@rami.io >
* Update src/pretix/presale/context.py
Co-authored-by: Mira <weller@rami.io >
* Update src/pretix/presale/views/widget.py
Co-authored-by: Mira <weller@rami.io >
* Update src/pretix/presale/context.py
Co-authored-by: Mira <weller@rami.io >
* Update src/pretix/static/pretixbase/scss/_variables.scss
Co-authored-by: Richard Schreiber <schreiber@rami.io >
* Last minor changes
* Rename file
---------
Co-authored-by: Mira <weller@rami.io >
Co-authored-by: Richard Schreiber <schreiber@rami.io >
2024-06-25 13:01:20 +02:00
Mira
a73c4ad937
Improve List Sorting UI ( #4215 )
...
Improve product list UI (allow move between categories, more useful columns and links)
and hide "move up/down" arrows in lists by default if drag-drop is available
2024-06-25 12:54:11 +02:00
Raphael Michel
043e2eb9cf
Order denial email: Use correct language for context
2024-06-25 11:57:42 +02:00
Raphael Michel
4f9297e7d8
Show minimal check-in status in order export (Z#23154920) ( #4223 )
...
* Show minimal check-in status in order export (Z#23154920)
* Update src/pretix/helpers/database.py
Co-authored-by: Mira <weller@rami.io >
* Review note
---------
Co-authored-by: Mira <weller@rami.io >
2024-06-24 17:34:10 +02:00
Richard Schreiber
9ffdf979f4
PDF: ignore outline, annots, etc. when merging background-pdf ( #4249 )
2024-06-20 12:07:04 +02:00
Raphael Michel
1200274ebf
Export: Do not rely on cached answer option values (Z#23152831) ( #4225 )
...
* Export: Do not rely on cached answer option values
* refactor duplicate code
---------
Co-authored-by: Mira Weller <weller@rami.io >
2024-06-17 10:12:15 +02:00
Raphael Michel
877401d8c0
Remove subevent.items ( #4220 )
2024-06-14 14:49:55 +02:00
Richard Schreiber
3b48b0782d
PDF: when merging bg.pdf with fg.pdf use the higher PDF-version ( #4171 )
2024-06-11 12:16:57 +02:00
Mira
dd6ebd7a48
Improve validation of email templates ( #4184 )
...
* Improve validation of email templates
* simplify SafeFormatter (skip attribute access code path altogether instead of blocklisting characters)
* let SafeFormatter optionally raise on missing key
* simplify placeholder validation
* rename parameter
* Remove unused import
---------
Co-authored-by: Raphael Michel <michel@rami.io >
2024-06-10 16:41:52 +02:00
Raphael Michel
d463878514
Do not use price suggestion if voucher is used (Z#23155018) ( #4195 )
2024-06-04 11:57:26 +02:00
Raphael Michel
1566f54764
VAT ID validation: Fix crash with invalid Norwegian IDs (PRETIXEU-A3J)
2024-05-29 09:31:58 +02:00
Richard Schreiber
fb3046210b
Harden timing when getting order with secret check ( #4177 )
2024-05-24 14:09:18 +02:00
Mira
05a2f411db
Improve order secret handling ( #4139 )
...
- use hmac.compare_digest for all secret comparisons
- use salted_hmac with sha256 instead of plain sha1 for hashed secrets
- move secret handling into helper functions
2024-05-23 14:30:16 +02:00
Raphael Michel
e93e5c047c
Waiting list: Fix pathological performance on large series with seating ( #4169 )
2024-05-23 11:51:48 +02:00
Raphael Michel
2619a658c9
Widget: Allow passing more invoice data fields ( #4162 )
2024-05-23 11:19:59 +02:00
Raphael Michel
9f297fbd25
Widget: Fix data-invoice-address-country being overridden by GeoIP ( #4168 )
2024-05-23 11:17:54 +02:00
Richard Schreiber
71af40a08b
Simplify merging rotated background PDFs ( #4166 )
...
* Simplify merging rotated background PDFs
* fix code style issues
2024-05-23 08:55:51 +02:00
Raphael Michel
ef60093bae
Update pypdf requirement from ==3.9.* to ==4.2.* ( #4159 )
...
* Change PDF merging for compatibility with pypdf 4
* Update pypdf requirement from ==3.9.* to ==4.2.*
* fix pypdf API-changes
* fix missing removal of deepcopy
* fix rotated PDF-backgrounds
---------
Co-authored-by: Richard Schreiber <schreiber@rami.io >
2024-05-22 14:56:21 +02:00
Mira
49c4cc639f
Fix time machine permission via pretix_event_access sessions for staff users ( #4160 )
2024-05-22 13:13:50 +02:00
Mira
9a807df158
Fix pretix_event_access (custom domain) sessions for staff users ( #4158 )
2024-05-21 13:26:12 +02:00
Mira
b638c00952
Time machine mode [Z#23129725] ( #3961 )
...
Allows organizers to test their shop as if it were a different date and time.
Implemented using a time_machine_now() function which is used instead of regular now(), which can overlay the real date time with a value from a ContextVar, assigned from a session value in EventMiddleware.
For more information, see doc/development/implementation/timemachine.rst
---------
Co-authored-by: Richard Schreiber <schreiber@rami.io >
Co-authored-by: Raphael Michel <michel@rami.io >
2024-05-17 10:52:17 +02:00
Raphael Michel
ad5d10ff67
Fix missing serializer class
2024-05-15 11:01:32 +02:00
Raphael Michel
e8f7cea1bf
Allow attendees to modify their data (Z#23152886) ( #4138 )
...
* Allow attendees to modify their data
* Allow attendees to change ticket information
* Update src/pretix/control/templates/pretixcontrol/event/settings.html
Co-authored-by: Mira <weller@rami.io >
* Update src/pretix/presale/views/order.py
Co-authored-by: Mira <weller@rami.io >
* Update src/pretix/base/services/placeholders.py
Co-authored-by: Mira <weller@rami.io >
* Tests fix
* Fix test
---------
Co-authored-by: Mira <weller@rami.io >
2024-05-08 15:18:33 +02:00
Raphael Michel
aa55eb2de2
Reactivate order: Fix incorrect signal being sent
2024-05-08 09:56:37 +02:00
Mira
9dc5c1b266
Prevent transferring files from priv/ to pub/ on event clone ( #3956 )
...
* Prevent transferring files from priv/ to pub/ on event clone
* Also detect file names with node prefix
* Only transfer files in explicitly declared file fields
* Update django-hierarkey
* Add note to documentation about the new behaviour
2024-05-08 09:33:23 +02:00
Raphael Michel
586e694ff3
Order import: Add expires column (Z#23152985) ( #4137 )
2024-05-08 09:09:55 +02:00
Raphael Michel
5ca0833db1
Vouchers: Fix validation of quota when copying a blocking voucher (Z#23152799) ( #4133 )
...
* Vouchers: Fix validation of quota when copying a blocking voucher
* Bugfixes
2024-05-07 09:50:16 +02:00
Raphael Michel
7a63498333
PDF editor: Add variables for purchase date (Z#23152887) ( #4134 )
...
* PDF editor: Add variables for purchase date (Z#23152887)
* Fix order and add time
2024-05-07 09:48:05 +02:00
Raphael Michel
9da65f60d7
Voucher import: Fix validation quirks
2024-05-03 16:06:40 +02:00
Raphael Michel
806124304a
Voucher get code validation
2024-05-03 14:34:51 +02:00
Mira
541b8f5bd6
Discounts: Fix edge case in computation ( #4126 )
...
* Add new test case for discounts:
Two discounts:
- "For every 1 item1, you get three item2 for 10 % off."
- "For every 1 item1, you get five item3 for 10 % off."
Cart: 2x item1, 2x item2, 6x item3
Expected result: 2x item1 full price, 2x item2 discounted, 5x item3 discounted, 1x item3 full price
* Fix discount calculation bug
* Update src/pretix/base/models/discount.py
Co-authored-by: Raphael Michel <michel@rami.io >
* Update src/pretix/base/models/discount.py
Co-authored-by: Richard Schreiber <schreiber@rami.io >
---------
Co-authored-by: Raphael Michel <michel@rami.io >
Co-authored-by: Richard Schreiber <schreiber@rami.io >
2024-05-02 18:21:56 +02:00
Raphael Michel
044f0c5480
Fix N+1 query in event calendar found by sentry ( #4104 )
...
* Fix N+1 query in event calendar found by sentry
* isort
---------
Co-authored-by: Mira Weller <weller@rami.io >
2024-04-29 18:41:50 +02:00
Raphael Michel
4d394f9e8a
Answer file export: Allow to filter by subevent (Z#23150581) ( #4066 )
...
* Answer file export: Allow to filter by subevent (Z#23150581)
* Update src/pretix/base/exporters/answers.py
Co-authored-by: Mira <weller@rami.io >
* Fix isort
---------
Co-authored-by: Mira <weller@rami.io >
2024-04-29 18:12:58 +02:00
Raphael Michel
247c4c6c9c
Do not remove unavailable addons when changing order (Z#23150855) ( #4086 )
2024-04-29 18:11:20 +02:00
Raphael Michel
11a038feb3
Allow secret generators to access order datetime ( #4110 )
2024-04-26 15:09:01 +02:00
Raphael Michel
8aecf4f98f
Voucher import: Validate code not empty
2024-04-26 11:25:49 +02:00
Raphael Michel
f7b405b210
Voucher import: Do not allow to keep min/max usages empty
2024-04-24 14:20:54 +02:00
Raphael Michel
11a6390cfc
Voucher import: Fix quota name check
2024-04-24 10:28:10 +02:00
Martin Gross
5c833cd493
Add special input widgets for markdown fields ( #1577 )
...
* Add markdown text input widgets
* Update src/pretix/static/pretixcontrol/scss/_forms.scss
* Improvements
---------
Co-authored-by: Raphael Michel <michel@rami.io >
2024-04-23 14:40:30 +02:00
Raphael Michel
64d6a34039
Ensure correct language of invoice attachment file name (Z#23150936) ( #4094 )
2024-04-23 14:07:30 +02:00
Raphael Michel
6482fe79b0
Add force to log entry in extend_order()
2024-04-22 21:34:46 +02:00
Raphael Michel
0f696f42f6
Do not allow currency codes that to not represent money ( #4056 )
...
* Do not allow currency codes that to not represent money
* Rebase migration
* Fix blacklist
2024-04-22 16:22:30 +02:00
Raphael Michel
5f5001edb5
File upload: Fix thumbnailing of current image (Z#23151293) ( #4098 )
2024-04-22 13:14:28 +02:00
Raphael Michel
fb403dad88
Add comment field to subevents (Z#23148472) ( #4099 )
...
* Add comment field to subevents (Z#23148472)
* Review fix
2024-04-22 12:56:29 +02:00