Commit Graph
96 Commits
Author SHA1 Message Date
Mira Weller ef61e51a3a Use dataclass for bulk-edit data, deduplicate quota-blocking logic 2026-05-28 18:50:01 +02:00
Mira Weller 777f0e0aca Refactor: Deduplicate get_affected_quotas code 2026-05-28 13:26:34 +02:00
Mira Weller b490425a99 Refactor: Method for _bulk update check 2026-05-27 20:40:09 +02:00
Mira Weller 19306ce798 Reuse parse_itemvar from VoucherForm 2026-05-27 20:27:17 +02:00
Raphael Michel 20da00d4fb More tests 2026-04-20 23:52:19 +02:00
Raphael Michel 178a5525d5 some tests and fixes 2026-04-19 22:36:06 +02:00
Raphael Michel 1da1393a86 Minor fixes 2026-04-17 02:23:45 +02:00
Raphael Michel adf167e611 untested draft 2026-04-17 02:23:45 +02:00
Raphael Michel 4867afc503 [DRAFT] voucher bulk update 2026-04-17 02:23:45 +02:00
Raphael Michelandluelista fdd34f387a [SECURITY] Prevent HTML injection through placeholders in emails
Co-authored-by: luelista <weller@pretix.eu>
2025-11-27 11:41:27 +01:00
Raphael Michel 177a7d07fc Update license header (#5540) 2025-10-10 15:32:46 +02:00
Richard Schreiber b3974067a5 Fix placeholder interpolation in voucher error message (#5456) 2025-09-09 19:43:36 +02:00
Tobias Kunze 154f10af8f Fix bulk voucher CSV field description (#5120) 2025-08-04 16:35:19 +02:00
Richard Schreiber 14d6013292 FormFields: remove placeholders duplicating labels (#5135) 2025-07-10 16:06:36 +02:00
Raphael MichelandRichard Schreiber 177b9cdcbb Voucher form: Field-specific error messages (Z#23199648) (#5291)
* Voucher form: Field-specific error messages (Z#23199648)

* Update src/pretix/control/forms/vouchers.py

Co-authored-by: Richard Schreiber <schreiber@rami.io>

---------

Co-authored-by: Richard Schreiber <schreiber@rami.io>
2025-07-08 14:11:44 +02:00
Raphael Michel 7a66aea2cb Voucher update: Allow to remove seat 2024-10-07 11:42:28 +02:00
Raphael Michel ad443d0eb6 Improve a help text 2024-08-05 12:34:33 +02:00
Raphael MichelandRichard Schreiber 288f73b735 Bulk voucher creation: Use event default language for default text (#4349)
* Bulk voucher creation: Use event default language for default text

* Update src/pretix/control/forms/vouchers.py

Co-authored-by: Richard Schreiber <schreiber@rami.io>

* Apply suggestions from code review

Co-authored-by: Richard Schreiber <schreiber@rami.io>

* Style

---------

Co-authored-by: Richard Schreiber <schreiber@rami.io>
2024-07-30 16:48:30 +02:00
Raphael Michel a7a33ed165 Voucher bulk form: Strip spaces from email addresses before validation 2024-06-20 17:16:21 +02:00
Raphael Michel e28bbb7ea0 Voucher creation: Fix TypeError in validation (PRETIXEU-A52) 2024-06-10 12:23:20 +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
Martin GrossandRaphael Michel 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 70d32ea1aa Voucher form: Add quota in help text 2024-02-07 09:59:32 +01:00
Raphael Michel 82704b60c7 Voucher form: Fix quota check for partially redeemed vouchers 2023-11-29 16:09:04 +01:00
Raphael Michel 158d480bb3 Fix typo in error message 2023-10-18 10:57:31 +02:00
Richard Schreiber ca79436e36 Vouchers: fix code min-length check on bulk creation 2023-09-26 09:15:23 +02:00
Richard Schreiber af3100a354 E-mail content: insert placeholder into text on click 2023-09-14 10:32:22 +02:00
Raphael Michel f017de1a21 Voucher bulk creation: Fix validation issue 2023-08-23 12:18:30 +02:00
Raphael Michel c4ae363fdb Use hard line breaks in all default email texts 2023-06-16 15:38:46 +02:00
Raphael Michel 35d2a73f75 Voucher creation: Fix crash in validation (PRETIXEU-8GF) 2023-06-02 17:19:25 +02:00
Raphael MichelandRichard Schreiber c75c080c5c Vouchers: Allow to set all addons or bundles as included (#3322)
Co-authored-by: Richard Schreiber <schreiber@rami.io>
2023-05-22 11:59:27 +02:00
Raphael Michel 23b863df96 Voucher bulk cration: Add heuristical error message for CSV input 2023-03-29 17:55:56 +02:00
Raphael Michel c184187e59 Improve error handling for CSV parsing in voucher bulk creation 2022-11-08 10:27:31 +01:00
Raphael Michel d69d70cfb1 Voucher: Add min_usages parameter (#2853) 2022-10-20 18:07:24 +02:00
Raphael Michel 2fd2462ef1 Voucher bulk creation: Fix validation for duplicate in input 2022-02-25 18:12:28 +01:00
Raphael Michel 04375d4fcf Fix voucher form validation (Z#2384192) 2021-09-06 19:32:15 +02:00
Raphael Michel a93287207b pretix Community Edition moves to AGPLv3-based license (#2023) 2021-04-12 10:33:47 +02:00
Raphael Michel 4a2ac110b3 Voucher bulk creation: More efficient implementation and async task 2021-03-14 18:19:49 +01:00
Raphael Michel ac7502b0a2 Limit batch size in bulk voucher creation (avoid problems with MySQL's max_packet_size) 2021-01-28 12:43:26 +01:00
Martin Gross b4778b5845 Allow to unselect product or quota from voucher (#1799) 2020-10-06 09:08:15 +02:00
Raphael Michel af23d6e4bf Upgrade to Django 3.0 and other dependencies (#1568)
* Upgrade Django to 3.0 and other dependencies to recent versions

* Fix otp version contsraint

* Remove six dependency

* Resolve some warnings

* Fix failing tests

* Update django-countries

* Resolve all RemovedInDjango31Warnings in test suite

* Run isort

* Fix import

* Update PostgreSQL version on travis
2020-03-23 15:02:20 +01:00
Raphael Michel 7acee9458d Move bulk_create logic during bulk voucher creation 2020-02-09 12:17:48 +01:00
Raphael Michel 8e2821b398 Add a maximum budget to vouchers (#1526)
* Data model changes

* Fix test failures

* Adjustments

* Some tests and API support

* Check when extending orders

* Make things more deterministic, fix style

* Do not apply negative discounts

* Update price_before_voucher on item/subevent changes

* Add tests for price_before_voucher in combination with free price

* Fix InvoiceAddress.DoesNotExist
2020-01-03 16:15:17 +01:00
Raphael Michel e1a4dd6e43 Revert "Data model changes"
This reverts commit 089a468a5d.
2019-12-15 19:00:02 +01:00
Raphael Michel 089a468a5d Data model changes 2019-12-15 18:28:51 +01:00
Raphael Michel bbc70447a2 Allow to create vouchers for *all* products (#1504) 2019-11-27 14:57:09 +01:00
Raphael Michel 84fb25e4d9 Voucher creation: Auto-select products based on seat 2019-11-22 13:25:20 +01:00
Raphael Michel 5e9610eecf Fix typo in function call 2019-11-17 19:35:06 +01:00
Raphael Michel 1c40351b27 Bulk voucher sending: Correctly strip lines of whitespace 2019-11-17 19:31:41 +01:00
Raphael Michel 9515249098 Bulk voucher creation: Fix spaces in seat IDs 2019-11-15 18:44:47 +01:00