Commit Graph

706 Commits

Author SHA1 Message Date
Raphael Michel
f3509707d7 Use CachedTicket.get_or_create to avoid duplicates 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
067b80cd3c Account history view 2016-10-09 12:59:43 +02:00
Raphael Michel
db49f8ea89 EventPluginSignal: Call core plugins even when no event is given 2016-10-09 12:59:43 +02:00
Raphael Michel
f82b5ddaae Account security notifications via email 2016-10-09 12:59:43 +02:00
Raphael Michel
d7719d0bc7 2FA: Login via U2F 2016-10-09 12:59:43 +02:00
Raphael Michel
2f24af824e 2FA: Support for adding TOTP-based devices 2016-10-09 12:59:43 +02:00
Raphael Michel
b5a23224c8 Added admin action to make an expired order pending again 2016-10-03 11:14:20 +02:00
Raphael Michel
f8c99f6d02 Added can_view_vouchers permission 2016-09-24 17:18:32 +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
1faacef9d4 Always process tasks through celery (#245) 2016-09-21 10:38:31 +02:00
Raphael Michel
122221c218 Fixed code style in vouchers.py 2016-09-16 00:04:05 +02:00
koebi
5aa1ecec7c Add documentation for voucher tags (#240)
Voucher tags were not documented in the help text at the beginning
of the voucher class.
Related to #228
2016-09-15 21:52:02 +02:00
Raphael Michel
f165275ade Do not generate upper case secrets if we treat them case-insensitively 2016-09-12 17:41:55 +02:00
Raphael Michel
01f30485de Merge pull request #225 from rixx/invoice_string_from_payment_provider
Invoice string from payment provider
2016-09-08 18:32:28 +02:00
Tobias Kunze
3eb4e84db4 Allow payment providers to supply invoice content 2016-09-07 15:30:35 +02:00
Raphael Michel
6e829ff30a Removed redundant voucher.is_ordered 2016-09-06 21:29:21 +02:00
Raphael Michel
2576d3680d Directly serve cached files through django 2016-09-05 23:58:16 +02:00
Raphael Michel
f1495f242f Fixed transaction handling problem if a race condition occurs during invoice creation 2016-09-05 23:19:25 +02:00
Raphael Michel
a6bafd816b Send automatic payment reminder emails, redesign mail settings 2016-09-02 10:16:08 +02:00
Raphael Michel
972ad211bf Only expire orders in the evening of their expiry date 2016-09-02 10:09:15 +02:00
Raphael Michel
795d0ec333 Improve help on the Item model 2016-09-01 09:00:16 +02:00
Enrique Saez
841cfe52a2 Fix #91 -- Make products/orders that are not cancelable (#204)
* Make products/orders that are not cancellable
Update Unit Tests

* Make use of select_related instead of prefetch_related
Simplify cancellable logic
Migrations

* Simplify cancellable logic
Maske use of select_related instead of prefetch_related

* Fix cancelable condition bug
2016-09-01 08:55:02 +02:00
Tobias Kunze
5f401f17d8 Add a footer and a second text field to invoices
Also, move to using localized strings for Invoice.additional_text
settings for consistency.
2016-08-30 19:49:29 +02:00
Tobias Kunze
157a16810d Add a net_value column to invoices
TODO: localization
2016-08-30 19:05:35 +02:00
Raphael Michel
dc3e1e3d30 Got rid of javascript-based random generator 2016-08-29 23:46:17 +02:00
Raphael Michel
1cb6c0e3da Add more tolerance about handwriting in order code detection 2016-08-29 23:21:55 +02:00
Raphael Michel
c30ff5e657 Only call now() once inside any event.lock() call 2016-08-29 22:33:51 +02:00
Raphael Michel
5f64aecafa Merge pull request #201 from rixx/ticket165_reactivate_voucher
Fix #165 -- Reactivate voucher on cancelled orders
2016-08-29 21:15:10 +02:00
Tobias Kunze
4a02ed566f Use get_random_string everywhere (#210)
Django's get_random_string tries really hard to either use sysrandom or
be otherwise as unpredictable as possible. Thanks to David Gullasch for
pointing out both the problem and the solution.
2016-08-29 19:10:01 +02:00
Enrique Saez
3583dde1db Fix #202 -- Allow the manual ordering of questions
* Allow the manual ordering of questions
Update Unit Tests
Fix some typos

* Add migrations

* Minor notation change
2016-08-29 18:36:56 +02:00
Tobias Kunze
87a77989e7 Disallow cancelling an expired order
as per discussion on #165
2016-08-24 15:26:54 +02:00
Tobias Kunze
5667866c9d Make vouchers reusable upon cancelation of an Order
Refs #165.
2016-08-21 15:56:25 +02:00
Tobias Kunze
4191f93ece Add setting determining invoice number format (#193) 2016-08-16 21:18:39 +02:00
Raphael Michel
5aef86417c Removed two unused model fields 2016-08-16 14:43:00 +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
1ef5973e26 Removed debugging output 2016-08-15 15:35:32 +02:00
Tobias Kunze
19e45ac294 Remove phone numers from invoices (#189) 2016-08-15 15:06:26 +02:00
Raphael Michel
fe6de0f635 Added ignored_quotas argument to check_quotas() 2016-08-15 11:48:48 +02:00
Raphael Michel
71944d4b1e Updated German translation 2016-08-14 18:52:30 +02:00
Raphael Michel
6d54239b47 Fixed a bug that lead to invoice information not being editable if
nothing else is editable in an order
2016-08-14 16:10:06 +02:00
Raphael Michel
5031393136 Force isort to treat typing in the py3.5 style, not py3.4 2016-08-13 21:19:36 +02:00
Tobias Kunze
34212841e2 Fixed typos and a little phrasing. (#175)
Mostly in German translation, some small fixes in English text, too.
2016-08-13 21:16:16 +02:00
Tobias Kunze
3eb581e55a Add comment field to Orders
refs #177
2016-08-12 10:30:23 +02:00
Raphael Michel
a22262aa30 Refs #131 -- Allow to regenerate an invoice 2016-08-05 11:26:13 +02:00
Raphael Michel
58e706b721 Fixed bug in quota calculation (thanks @rixx!) 2016-08-04 18:00:28 +02:00
Raphael Michel
221ce9f0ae Added configuration options for some secret lengths 2016-08-03 00:18:04 +02:00
Raphael Michel
d976d8d26d Added some database indices 2016-08-03 00:18:04 +02:00