Commit Graph

107 Commits

Author SHA1 Message Date
Raphael Michel
1a42a54d98 [SECURITY] Tokens for downloading answer attachments 2017-08-21 15:14:45 +02:00
Raphael Michel
e858edd85c Do not allow vouchers to create negative prices 2017-08-07 12:11:48 +02:00
Joepriesto
27b73227ed Fix #30 -- Event microdata information (#546)
* Addition of all basics required for microdata

Microdata for event added to the head of the base event html template.

* Fixed flake8 errors & included settings checks

Fixed the flake8 too many blank line errors and changed the date and time section to refer to settings before including the time and/or the date_to.

* Typo in last commit

Fixed typo in last commit

* Fixed bracket mistake and flake8 error

Fixed tab between { and % in template tag. Removed extra lines. Removed unnecessary str() call.
Corrected binary & to [and] operator.

* Added testing for microdata

Testing added to the presale.test_event tests to cover the 4 branches and basic microdata functionality.
2017-07-16 17:42:46 +02:00
Raphael Michel
144f9bed69 Fix URL in iCal test 2017-07-15 16:38:14 +02:00
Raphael Michel
8438b211a6 Fix iCal test failing due to new UID format 2017-07-14 14:55:08 +02:00
Raphael Michel
f94314afec Generate organizer-level iCal files 2017-07-14 14:25:05 +02:00
Raphael Michel
f91d7352a4 Fix AttributeError in test 2017-07-13 22:04:34 +02:00
Raphael Michel
c1158c3175 Allow to mark add-ons as "included" in price 2017-07-12 18:42:09 +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
Raphael Michel
0db5d062be Add a file upload type to questions (#534)
* Initial stuff

* More features
2017-07-03 14:22:31 +02:00
Raphael Michel
d08a0bdb00 Refs #39 -- New concept of "teams" (#478)
* New models

* CRUD UI

* UI for adding/removing team members

* Log display for teams

* Fix invitations, move frontend

* Drop old models (incomplete)

* Drop more old stuff

* Drop even more old stuff

* Fix tests

* Fix permission test

* flake8 fix

* Add tests fore the new code

* Rebase migrations
2017-05-03 16:55:37 +02:00
Raphael Michel
b52f2f5a9e Improve add-on products 2017-04-17 14:54:15 +02:00
Raphael Michel
5bcfb958f0 Simpler API for cart removal 2017-04-17 14:54:15 +02:00
Raphael Michel
e4706dd3ba Add attendee email field (#466)
* Add attendee email field

* exports, tests
2017-04-13 22:59:54 +02:00
Raphael Michel
3c59a870e7 Add new option Item.min_per_order 2017-04-13 14:16:23 +02:00
Raphael Michel
69faab01b2 Add constraint for a maximum number of a ticket per order 2017-03-24 17:11:48 +01:00
jlwt90
55953d5b4e Fix #389 -- Add event ical download feature (#413)
* added event ical download feature

* handle event settings and timezone

* add test cases for ical download

* fix failed test case for timezone settings

* using vobject lib to generate ical

* customised UID & add vobject dependency
2017-03-09 21:13:08 +01:00
Raphael Michel
09020143e7 Refactoring of cart services (#414) 2017-02-21 17:15:43 +01:00
Raphael Michel
7e135be012 Add tests and remove redundant checks 2017-02-17 16:19:03 +01:00
Raphael Michel
c83f539bba Add waiting list 2017-02-07 10:03:30 +01:00
Raphael Michel
0082216d75 Fix failing tests 2016-12-22 18:25:58 +01:00
Raphael Michel
d0a5529080 Fix two broken tests 2016-12-21 19:03:23 +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
Raphael Michel
9bce339575 Change and refactor _items_from_post_data to deal with multiple fields 2016-11-22 20:38:33 +01:00
FlaviaBastos
bf7db945b0 add empty cart button #161
add failing test for variation item with voucher
2016-11-22 20:38:33 +01:00
FlaviaBastos
a0ce81a538 addd empty cart button and remove all test
#161
2016-11-22 20:38:33 +01:00
Christopher Dambamuromo
9662b956ed Fix #294 -- Blacklist for slug validation (#325)
* Fix #294 - blacklist for slug validation

* Fix #294 - blacklist for slug validation

* fix for failing test
2016-11-21 11:57:52 +01:00
Raphael Michel
ad35110166 Offer download options per position, not per order 2016-11-02 14:51:05 +01:00
Raphael Michel
a2e707d57d Fixed failing tests 2016-10-18 19:13:30 +02:00
Raphael Michel
158043e29e Fixed a bug in order validation 2016-10-18 19:00:44 +02:00
Raphael Michel
503f6dd06f Use consistent flake8 settings everywhere and fix flake8 issues 2016-10-13 22:57:57 +02:00
Raphael Michel
d00eb41222 Merge branch 'django110' 2016-10-03 10:31:49 +02:00
Raphael Michel
bc9deec77c Added tests for changing the payment method 2016-10-02 19:13:55 +02:00
Raphael Michel
efc6b6e480 Resolved various warnings, upgrade bootstrap3 2016-09-27 10:50:13 +02:00
Raphael Michel
2a8bbb9952 Fixed missing check for variation.active 2016-09-25 20:54:40 +02:00
Raphael Michel
84fd7cb166 Merge remote-tracking branch 'remotes/flaviabastos/187_unify_canceled_spelling' 2016-09-21 19:07:15 +02:00
Flavia Bastos
8ef6439c44 Unify spelling of 'canceled'
Issue 187
Remove typeahead JS file.
2016-09-21 10:35:41 -06:00
Raphael Michel
dff43ed130 Improved fuzzy tests 2016-09-20 17:03:22 +02:00
Raphael Michel
a92923c7d0 Added tests for the voucher redemption view 2016-09-20 16:37:46 +02:00
Raphael Michel
d1f79faef2 New tests and minor fixes 2016-09-20 16:13:13 +02:00
Raphael Michel
5a9c760633 Fixed bug when modifying an expired cart including a voucher 2016-09-17 23:42:23 +02:00
Raphael Michel
9318652124 Fixed a broken test 2016-09-12 17:31:33 +02:00
Raphael Michel
037aa7fc59 Improved tests
The tests should have been broken by 52906ab, but they weren't because
the tests were to tolerant.
2016-09-09 14:53:09 +02:00
Tobias Kunze
7e19effe3c Fix #122 -- Allow users to re-send order links (#197)
If the provided mail address has not ordered anything, there will still
be a mail generated and sent to an invalid mail address, to avoid
obvious timing attacks to determine active users.
2016-09-01 08:59:36 +02:00
Vishal Sodani
5346473f75 Fix #180 -- Hide add to cart button if no products active or no quantity left (#200)
* Hide add to cart button if no products active or no quantity left(#180)

* Fix PEP errors and improve logic

* Fix tests for add to cart change

* Fix the logic for toggling the visibility of Add to Cart button
2016-08-29 19:30:08 +02:00
Raphael Michel
dadc4463fc Added more tests for voucher redemption 2016-08-15 23:00:44 +02:00
Raphael Michel
63b683096b Resolved two more edge cases in quota handling
Scenario 1) Blocking voucher is used in a CartPosition. Previously
too much was subtracted from the quota.

Scenario 2) When two quotas are assigned to a product and one of them
is sold out, blocking vouchers for the other quota should not enable to
buy the product.
2016-08-15 22:55:18 +02:00
Raphael Michel
1cb956d508 Added setting to disable order cancelling for users 2016-08-15 16:42:39 +02:00
Raphael Michel
3dfdfdf5d0 Check required vouchers at checkout 2016-08-15 16:10:38 +02:00