From f76d173162c65678ae68f5bc0380273207b60be5 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Tue, 29 Nov 2016 17:19:22 +0100 Subject: [PATCH] Fix various doc issues --- doc/development/api/payment.rst | 2 -- doc/development/api/ticketoutput.rst | 2 -- src/pretix/base/models/vouchers.py | 7 +++++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/doc/development/api/payment.rst b/doc/development/api/payment.rst index 870d58ebe..5fec441e6 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 ebe7a901a..0af834481 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 e397493d0..0c8759b37 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