Martin Gross
f5b0454e9f
API/Quotas: Expose "ignore_for_event_availability" (Z#23202218) ( #5324 )
2025-07-28 18:22:39 +02:00
Raphael Michel
a381adac33
API: Add transactions ( #5292 )
...
* API: Add transactions
* Apply suggestions from code review
Co-authored-by: Richard Schreiber <schreiber@rami.io >
---------
Co-authored-by: Richard Schreiber <schreiber@rami.io >
2025-07-08 14:11:53 +02:00
Raphael Michel
14ed6982a5
New data model for default tax rule and new options for cancellation fees ( #4962 )
...
* New data model for default tax rule
* Remove misleading empty label when field is not optional
* Allow to split cancellation fee
* Fix API and tests
* Update migration
* Update src/tests/api/test_taxrules.py
Co-authored-by: luelista <weller@rami.io >
* Update src/tests/api/test_taxrules.py
Co-authored-by: luelista <weller@rami.io >
* Review note
* Update src/pretix/base/models/tax.py
Co-authored-by: luelista <weller@rami.io >
* Flip API behaviour for default
* Fix failing tests
* Fix failing test
* Split migration
---------
Co-authored-by: luelista <weller@rami.io >
2025-06-30 16:47:09 +02:00
Raphael Michel
5d3fc62ba4
Questions: Validate type changes (Z#23197118) ( #5259 )
...
* Questions: Validate type changes (Z#23197118)
* Update src/pretix/base/forms/questions.py
Co-authored-by: Richard Schreiber <schreiber@rami.io >
* Update src/pretix/base/forms/questions.py
Co-authored-by: Richard Schreiber <schreiber@rami.io >
* Update src/pretix/base/forms/questions.py
Co-authored-by: Richard Schreiber <schreiber@rami.io >
* Update src/pretix/base/models/items.py
Co-authored-by: Richard Schreiber <schreiber@rami.io >
* Fix failing test
---------
Co-authored-by: Richard Schreiber <schreiber@rami.io >
2025-06-24 17:54:28 +02:00
Raphael Michel
eba5c1b36d
API: Fix crash on distributing a fee over tax rates with zero value (Z#23196669) ( #5226 )
2025-06-12 14:03:25 +02:00
Raphael Michel
e46e689f01
Allow to add declaration of accessibility ( #5140 )
...
* Allow to add declaration of accessibility
* add fallback for empty accessibility_title
* unify label format (not "Title for")
* move title to top and set helptext before text
---------
Co-authored-by: Richard Schreiber <schreiber@rami.io >
2025-05-28 13:23:04 +02:00
Raphael Michel
5522d67f9b
API: Fix old meta values being returned when updating event ( fixes #5077 ) ( #5080 )
2025-05-09 08:59:40 +02:00
luelista
277a5bffa8
Allow changing ticket secret via API (Z#23188201) ( #4989 )
2025-04-07 13:49:19 +02:00
Raphael Michel
804b048dbb
Check-in API: Return order locale, and allow to use order locale for … ( #4969 )
...
* Check-in API: Return order locale, and allow to use order locale for reasons
* Fix failing tests
2025-03-31 12:26:46 +02:00
Phin Wolkwitz
0b8a7349c7
Discounts: Add applicability date ranges (Z#23151897) ( #4927 )
...
* Add event date fields, add preliminary range check
* Remove function, use filtered queryset for subevent id limit
* Improve and fix date range check
* Add formfields
* Add tests
* Improve tests
* Add new fields to API and documentation
* Add migration
* Change description according to suggestion
* Change discount apply signature, remove unnecessary query
* Rename new fields, simplify range check
* Rename fields in template
* Apply suggestions from code review
Co-authored-by: Raphael Michel <michel@rami.io >
---------
Co-authored-by: Raphael Michel <michel@rami.io >
2025-03-27 15:36:20 +01:00
Richard Schreiber
a903cfa4d1
API: fix event creation sales-channel-migration ( #4949 )
...
* API: fix event creation sales-channel-migration
* do not allow sales_channels to be None
* fix wrong validation error-key
2025-03-25 16:52:29 +01:00
Richard Schreiber
9ec9c67550
Fix API cartpositions without answers ( #4909 )
2025-03-17 13:05:46 +01:00
Raphael Michel
11632e082f
API: Allow to add a fee to an order ( #4806 ) ( #4829 )
...
* API: Allow to add a fee to an order (#4806 )
* Fix example in docs
* Consistent order of examples
* Add create_fees to example
* docs: None -> null
* docs: update fee_type options
---------
Co-authored-by: Mira Weller <weller@rami.io >
2025-02-25 14:41:28 +01:00
Raphael Michel
d8846095dd
API: Add order_phone_asked/order_phone_required to DeviceEventSettingsSerializer ( #4842 )
2025-02-13 13:58:15 +01:00
Raphael Michel
4ad9bcf6e7
API: Fix locale accidentally being a required field
2025-02-12 17:55:30 +01:00
Raphael Michel
7afe2e66d7
API: Validate input locales (Z#23182219) ( #4833 )
2025-02-12 12:50:13 +01:00
Raphael Michel
0079be68d3
Allow plugins to add data to the order API (Z#23179688) ( #4822 )
...
* Allow plugins to add data to the order API (Z#23179688)
* Update src/pretix/api/serializers/media.py
Co-authored-by: Richard Schreiber <schreiber@rami.io >
* Fix failing test
---------
Co-authored-by: Richard Schreiber <schreiber@rami.io >
2025-02-10 14:06:20 +01:00
Mira Weller
f014a9bbd3
Reapply "Implement hidden_if_item_available_mode option (Z#23177008) ( #4776 )"
...
This reverts commit 5cd7959e86 .
2025-01-24 14:48:28 +01:00
Mira Weller
5cd7959e86
Revert "Implement hidden_if_item_available_mode option (Z#23177008) ( #4776 )"
...
This reverts commit b847612e1a .
2025-01-24 14:07:55 +01:00
Mira
b847612e1a
Implement hidden_if_item_available_mode option (Z#23177008) ( #4776 )
2025-01-24 11:24:50 +01:00
Raphael Michel
f1bdd3b7af
Remove debug print
2024-12-25 18:58:00 +01:00
Raphael Michel
13c40f9bb7
API: Fix sales channels when copying events (Z#23177154, Z#23169537)
2024-12-20 14:09:10 +01:00
Raphael Michel
53f129d5d3
Add codification of tax rates ( #4372 )
...
* draft
* .
* Rebase migration
* Update src/pretix/base/models/tax.py
Co-authored-by: Mira <weller@rami.io >
* Test, isort, flake, migration rebase
* carry data & API
* Fix failing tests
* docs fixes
* Improve validation
* Tests
* More fixes
---------
Co-authored-by: Mira <weller@rami.io >
2024-12-13 12:04:38 +01:00
Raphael Michel
e109c37738
API: use correct validation exception
2024-12-09 14:17:27 +01:00
Raphael Michel
6132e4a2c4
Remove re-implementations if i18nfield API integration
2024-12-05 17:56:30 +01:00
Raphael Michel
cc4fbfe4c7
API: Allow to block/unblock seats in bulk ( #4668 )
...
* API: Allow to block/unblock seats in bulk
* Update doc/api/resources/seats.rst
Co-authored-by: Richard Schreiber <schreiber@rami.io >
* Update doc/api/resources/seats.rst
Co-authored-by: Richard Schreiber <schreiber@rami.io >
* Update doc/api/resources/seats.rst
Co-authored-by: Richard Schreiber <schreiber@rami.io >
* Update src/pretix/api/views/event.py
Co-authored-by: Richard Schreiber <schreiber@rami.io >
---------
Co-authored-by: Richard Schreiber <schreiber@rami.io >
2024-12-02 16:03:11 +01:00
Raphael Michel
e74d12e8b8
API: Don't require sales channel in input (PRETIXEU-AST)
2024-11-11 17:22:06 +01:00
Raphael Michel
a5c39271dd
Make API security profiles pluggable ( #4597 )
...
* Make API security profiles pluggable
* Update src/pretix/api/signals.py
Co-authored-by: robbi5 <richt@rami.io >
* REmove dead class
---------
Co-authored-by: robbi5 <richt@rami.io >
2024-11-11 17:13:53 +01:00
Raphael Michel
3d85d9d865
Remove deprecated auto_checkin_sales_channels ( #4587 )
...
* Remove deprecated auto_checkin_sales_channels
* Fix Query count
2024-11-06 12:30:41 +01:00
Martin Gross
eb685b5141
API: Expose cancellation_date on order endpoint (Z#23170733) ( #4606 )
...
Co-authored-by: robbi5 <richt@rami.io >
2024-11-04 16:41:44 +01:00
Raphael Michel
3e4e86742a
Add print logs ( #4475 )
...
* Add print logs
* Add attribute successful
* Rebase migration
* Fix tests on postgres
2024-10-28 12:24:23 +01:00
Raphael Michel
19175258fd
API: Fix event cloning, limit_sales_channels should never be set when all_sales_channels is set (Z#23169537)
2024-10-23 16:30:00 +02:00
Mira
359df1f51e
Cross selling ( #4185 )
...
Product categories can now be marked as "cross-selling categories", causing them to
appear in the add-on checkout step as additional recommendations, depending on
their cross-selling visibility (always, only if certain products are already in the cart, or
only if they qualify for a discount according to discount rules).
---------
Co-authored-by: Raphael Michel <michel@rami.io >
Co-authored-by: Richard Schreiber <schreiber@rami.io >
2024-10-14 14:39:49 +02:00
Mira
c10efc692d
Let organizers specify a helptext for the custom invoice field (Z#23167497) ( #4520 )
2024-10-14 09:22:58 +02:00
Raphael Michel
221f14cc21
API: Fix crash PRETIXEU-AN5
2024-10-09 12:25:36 +02:00
Raphael Michel
b1bfa1acee
API: Provide useful device_id in checkins (Z#23163025) ( #4427 )
2024-08-29 12:36:27 +02:00
Raphael Michel
9ead82839a
API: Add show_dates_on_frontpage to device event settings
2024-08-28 13:47:24 +02:00
Mira
dc1973f4ff
Add API endpoint /seats to event (Z#23159536) ( #4321 )
...
* add API endpoint /seats to event
* fix logging
* add Seat annotations
* add seats endpoint for subevents
* return ids of occupying objects instead of boolean flags
* wip
* include orderposition instead of order in seat info
* add API documentation
* Apply suggestions from code review
Co-authored-by: Raphael Michel <michel@rami.io >
* Apply suggestions from code review
* Clarify API docs
* add api examples
* add test cases
* require can_view_orders permission for retrieving seats
* improve permission handling
* Revert "improve permission handling"
This reverts commit f32b532cc68760a8a4af03208bd17e75e8c5723d.
* improve permission handling (minimal version)
* formatting
* add permission tests
* fix bug
* update permission checks
* Apply suggestions from code review
Co-authored-by: Raphael Michel <michel@rami.io >
* add tests for permission checks
* add tests for expand=voucher and expand=cartposition
* remove unused parameter
* test query count
* codestyle
---------
Co-authored-by: Raphael Michel <michel@rami.io >
2024-08-02 09:17:46 +02:00
Raphael Michel
ad33785f4c
API: Allow to set seating_allow_blocked_seats_for_channel (Z#23159519) ( #4333 )
2024-07-30 16:28:08 +02:00
Richard Schreiber
22e2143623
API: add api_meta to order
2024-07-18 10:01:03 +02:00
Raphael Michel
2a0c3da8c4
Fix N+1 query found by sentry (PRETIXEU-AC2)
2024-07-16 11:25:48 +02:00
Raphael Michel
73038b0d97
Fix enforcement of restricted plugins ( #4286 )
2024-07-03 17:14:03 +02:00
Raphael Michel
8c01b2a469
API: Fix crash in creating variations
2024-07-03 12:37:41 +02:00
Raphael Michel
6ae6eba4de
API: Add details of seats ( #4282 )
2024-07-03 09:48:59 +02:00
Raphael Michel
94d13e4cdd
API: Raise the right validation error (PRETIXEU-ABV)
2024-07-02 17:49:09 +02:00
Raphael Michel
e618441231
API: Fix crash expanding variations
2024-07-02 14:44:35 +02:00
Raphael Michel
cd57f1f024
API: Fix creation of embedded variations with explicit sales channels
2024-07-02 09:25:19 +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
fe54a42fc7
Web checkin: Render special cases of pending state in search (Z#23154934) ( #4193 )
2024-06-04 21:53:30 +02:00
Raphael Michel
d6505f946f
API: Allow setting payment_giftcard__enabled
2024-05-14 15:45:42 +02:00