diff --git a/doc/development/api/payment.rst b/doc/development/api/payment.rst index 870d58ebe2..5fec441e65 100644 --- a/doc/development/api/payment.rst +++ b/doc/development/api/payment.rst @@ -70,8 +70,6 @@ The provider class .. automethod:: is_allowed - .. automethod:: is_allowed_for_order - .. autoattribute:: payment_form_fields .. automethod:: checkout_prepare diff --git a/doc/development/api/ticketoutput.rst b/doc/development/api/ticketoutput.rst index ebe7a901a2..0af8344810 100644 --- a/doc/development/api/ticketoutput.rst +++ b/doc/development/api/ticketoutput.rst @@ -65,5 +65,3 @@ The output class .. automethod:: generate .. autoattribute:: download_button_text - - .. autoattribute:: download_button_icon diff --git a/src/pretix/base/models/vouchers.py b/src/pretix/base/models/vouchers.py index e397493d09..0c8759b370 100644 --- a/src/pretix/base/models/vouchers.py +++ b/src/pretix/base/models/vouchers.py @@ -43,8 +43,11 @@ class Voucher(LoggedModel): :type block_quota: bool :param allow_ignore_quota: If set to true, this voucher can be redeemed even if the event is sold out :type allow_ignore_quota: bool - :param price: If set, the voucher will allow the sale of associated items for this price - :type price: decimal.Decimal + :param price_mode: Sets how this voucher affects a product's price. Can be ``none``, ``set``, ``subtract`` + or ``percent``. + :type price_mode: str + :param value: The value by which the price should be modified in the way specified by ``price_mode``. + :type value: decimal.Decimal :param item: If set, the item to sell :type item: Item :param variation: If set, the variation to sell