Commit Graph

47 Commits

Author SHA1 Message Date
Raphael Michel
cbf5c2ec1d Fix ZeroDivisionError if a voucher tag is given to a voucher with max_usages=0
Fix PRETIXEU-V7
2019-02-08 13:59:05 +01:00
Raphael Michel
77950de588 Voucher bulk delete: Remove cart positions as well 2019-02-06 10:28:26 +01:00
Raphael Michel
48b399424a Delete voucher even if it is contained in carts
Fix PRETIXEU-R1
2019-02-05 15:47:11 +01:00
Raphael Michel
4b8d4b4792 Allow to bulk-delete vouchers 2018-10-03 11:32:55 +02:00
Raphael Michel
afd766999c Upgrade to Django 2.1 (#710)
* Upgrade to Django 2.0

* more models

* i18n foo

* Update setup.py

* Fix Sentry exception PRETIXEU-JC

* Enforce slug uniqueness

* Import sorting

* Upgrade to Django 2.1

* Travis config

* Try to fix PostgreSQL failure

* Smaller test matrix

* staticfiles→static

* Include request in all authenticate() calls
2018-08-06 12:48:46 +02:00
Raphael Michel
24739e1638 Hide waiting list vouchers in voucher list 2018-07-29 15:39:31 +02:00
Raphael Michel
180904cdc2 Fix KeyError 2018-06-11 14:29:29 +02:00
Mason Mohkami
479a7d9162 Fix #357 -- Implement go to for vouchers (#849)
* Add Go input for vouchers on the vouchers list page (#357)

* Final fixes
2018-05-31 12:43:32 +02:00
Raphael Michel
60a3f21857 Fix error in voucher CSV export 2018-05-28 16:17:32 +02:00
Raphael Michel
0d1f424425 Improve performance of voucher bulk creation 2018-02-26 10:42:58 +01:00
Raphael Michel
4ed3df2b08 Voucher list: Refactor to use filter form 2018-02-02 15:20:26 +01:00
Raphael Michel
7ec614a691 Allow filtering the voucher list for checked-in tickets 2017-12-11 16:07:24 +01:00
Raphael Michel
9e84e78215 Pagination improvements, allow to select page size 2017-12-09 19:54:39 +01:00
Raphael Michel
be6496e569 API: Writeable methods for vouchers (#639) 2017-10-12 14:09:44 +02:00
Raphael Michel
a2c1413036 [SECURITY] Use defusedcsv for exports 2017-08-21 15:14:44 +02:00
Raphael Michel
f94314afec Generate organizer-level iCal files 2017-07-14 14:25:05 +02:00
Martin Gross
4584d23434 Fix #556 - Max. redemptions instead of amount of vouchers (#558) 2017-07-14 12:11:34 +02:00
Raphael Michel
8123effa65 Add sub-events and relative date settings (#503)
* Data model

* little crud

* SubEventItemForm etc

* Drop SubEventItem.active, quota editor

* Fix failing tests

* First frontend stuff

* Addons form stuff

* Quota calculation

* net price display on EventIndex

* Add tests, solve some bugs

* Correct quota selection in more places, consolidate pricing logic

* Fix failing quota tests

* Fix TypeError

* Add tests for checkout

* Fixed a bug in QuotaForm

* Prevent immutable cart if a quota was removed from an item

* Add tests for pricing

* Handle waiting list

* Filter in check-in list

* Fixed import lost in rebase

* Fix waiting list widget

* Voucher management

* Voucher redemption

* Fix broken tests

* Add subevents to OrderChangeManager

* Create a subevent during event creation

* Fix bulk voucher creation

* Introduce subevent.active

* Copy from for subevents

* Show active in list

* ICal download for subevents

* Check start and end of presale

* Failing tests / show cart logic

* Test

* Rebase migrations

* REST API integration of sub-events

* Integrate quota calculation into the traditional quota form

* Make subevent argument to add_position optional

* Log-display foo

* pretixdroid and subevents

* Filter by subevent

* Add more tests

* Some mor tests

* Rebase fixes

* More tests

* Relative dates

* Restrict selection in relative datetime widgets

* Filter subevent list

* Re-label has_subevents

* Rebase fixes, subevents in calendar view

* Performance and caching issues

* Refactor calendar templates

* Permission tests

* Calendar fixes and month selection

* subevent selection

* Rename subevents to dates

* Add tests for calendar views
2017-07-11 13:56:00 +02:00
Tobias Kunze
8fa490c938 Allow to add a prefix when generating voucher codes (#518) 2017-06-16 23:21:23 +02:00
jlwt90
1baac6bb21 add voucher code in success message (#426)
* add voucher code in success message

* change voucher message
2017-03-05 09:32:56 +01:00
Tobias Kunze
4e6345aaed Remove whitespace when searching for a voucher (#366) 2016-12-29 14:11:50 +01:00
Raphael Michel
70fa7eac6b Vouchers: Bug in export, default mode 2016-12-22 17:54:24 +01:00
Raphael Michel
eea6a5e9da Refs #145 -- Vouchers that grant discounts 2016-11-29 16:18:07 +01:00
Raphael Michel
db6fb51fc6 Refs #145 -- Multi-use vouchers 2016-11-27 16:02:40 +01:00
Tobias Kunze
f955c35f2d Fix voucher tag overview with MySQL (closes #253) (#254)
This is a fix for this MySQL issue: https://code.djangoproject.com/ticket/24662
It is (imo) the best solution over custom SQL queries or explicit int
casting later on.
2016-09-27 11:42:58 +02:00
Raphael Michel
f8c99f6d02 Added can_view_vouchers permission 2016-09-24 17:18:32 +02:00
Raphael Michel
d1f79faef2 New tests and minor fixes 2016-09-20 16:13:13 +02:00
koebi
5c0f04fc67 Fix #228 -- Enable substring-search when matching voucher tags (#241) 2016-09-16 00:06:01 +02:00
Raphael Michel
5c791e7fab Order voucher tags in the voucher tag view 2016-09-14 08:55:42 +02:00
Tobias Kunze
988dfc32a3 Use @transaction.atomic instead of @transaction.atomic() 2016-09-07 15:30:38 +02:00
Raphael Michel
dc3e1e3d30 Got rid of javascript-based random generator 2016-08-29 23:46:17 +02:00
Tobias Kunze
1a24a2e892 Show a voucher's item's variation, if any, in list view (#181) (#213) 2016-08-29 19:12:05 +02:00
Raphael Michel
7a8213afcc Removed usages of is_ordered 2016-08-14 18:41:21 +02:00
Raphael Michel
a056ee732a Added voucher list download as CSV 2016-08-05 10:32:06 +02:00
Raphael Michel
ce6e8d0f5c Refs #105 -- Check quota before blocking it with a voucher 2016-08-05 10:18:24 +02:00
Raphael Michel
221ce9f0ae Added configuration options for some secret lengths 2016-08-03 00:18:04 +02:00
Raphael Michel
168288e98a Added voucher tag statistics 2016-07-30 15:41:59 +02:00
Raphael Michel
650f2412c2 Added filtering to the voucher list 2016-07-30 13:56:43 +02:00
Raphael Michel
2541855948 Fixed missing or unused imports 2016-07-18 23:12:16 +02:00
Raphael Michel
10c18c5cc9 Added signals to VoucherBulkForm to ease extension 2016-07-11 19:30:29 +02:00
Raphael Michel
35a9ab8f62 Added signals that allow to modify the voucher form 2016-07-03 16:52:56 +02:00
Raphael Michel
28f3eae74b Added bulk creation form for vouchers 2016-06-01 13:30:17 +02:00
Raphael Michel
cc9a9723fe Added "comments" and "tags" to vouchers 2016-06-01 12:45:32 +02:00
Raphael Michel
8c188641ee Added search capabilities to the voucher list 2016-06-01 12:31:08 +02:00
Raphael Michel
167b208df9 Fixed bugs in voucher deletion view 2016-04-13 11:10:37 +02:00
Raphael Michel
6b25dea7b0 Don't show delete page in control panel if deletion is impossible 2016-02-11 16:58:23 +01:00
Raphael Michel
6e22149a21 UI for creating and chacnging vouchers 2016-02-09 11:47:16 +01:00