Commit Graph

253 Commits

Author SHA1 Message Date
Raphael Michel
b7f8832633 Fix test_order_list 2017-06-29 12:11:20 +02:00
Raphael Michel
6ae5c5e6ce Fix tests failing after last commit 2017-06-19 16:17:08 +02:00
Raphael Michel
123d2f6120 Allow to add positions to an existing order 2017-06-19 15:22:57 +02:00
Raphael Michel
b2d4bea1d0 Refs #314 -- Read-only REST API (#513)
* initial commit

* API auth

* Hierarchical URLs

* Add session auth

* Strong hierarchy

* Add filters

* Add i18n fields, questions

* More viewsets and serializers

* Ticket download

* Add OrderPosition serializer

* View-level permissions

* More tests

* More tests

* Add basic API docs

* Add REST API to docs frontpage

* Tests for order endpoints

* Add invoice tests

* Voucher and waitinglist tests

* Doc draft

* order docs

* Docs on all viewsets

* Disable DRF docs, style sphinx, style browsable API

* Fix tests

* deprecated imports

* Test foo

* Attendee names

* Fix migration problems

* Remove browsable API, plugin integration

* Doc fixes
2017-06-19 11:16:04 +02:00
Raphael Michel
a02823ca38 Add global order search 2017-06-05 20:50:06 +02:00
Raphael Michel
ebabd20d09 [Django 1.11] Refs #481 -- Explicit sorting of NULLs 2017-05-26 09:44:11 +02:00
Tobias Kunze
0f2875e89a [Django 1.11] Upgrade to Django 1.11 2017-05-26 09:44:11 +02:00
Heok Hong Low
48b3621f1e Fix #499 -- Refactor paymentinfo to payment_info (#501)
* Refactor paymentinfo to payment_info, resolve #499

* Fix calling of object attribute on tuple

* Minor update to setup documentation

* Do not use short words for typochecks

* Text clarification

* Refactor paymentinfo to payment_info, resolve #499

* Include data migration for existing event settings, resolve #499
2017-05-22 14:06:19 +02:00
jlwt90
b301d20488 Fix #297 -- pretixdroid: Show metrics in the control panel (#481)
* add checkin status page

add dashboard widget
add checkin page under orders

* modify checkin logic

added new fields in checkin page
added filter items

* add tests for checkins & minor improvement

* support addin_product & noadm setting logic

* remove name ordering check test case
2017-05-08 17:31:37 +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
jlwt90
bc6b84f900 Fix #308 -- Preview for email templates (#438)
* add ajax and dummy api response

* add preview <p> blocks

* finalise order_placed setup

- use <pre> for mail preview
- create dummy data in backend

* fix i18n text conversion

* create fragment template for mail preview

* support i18n in mail preview view

* apply mail fragment in all mail settings

fix mistake in input[lang=en] flag style
add dummy data for all placeholders
apply fragment template to all fields
add exclude option to fragment template

* remove migration file

* add translation mapping & fix field label

remove hardcoded field label
add transblock for translation file

* add test for mail setting preview

* fix code style in preview class

* bug fix in mail preview view

- fixed localised date values
- added locale index mapping
- added tests on multi-language event
- enhanced dummy data
2017-04-14 11:19:58 +02:00
Jahongir
ccb981e6ce Issue #449: Display and change order locale (#459)
* Add more security headers (#458)

* Include some missing security headers

This change adds the following security headers:
* X-Content-Type-Options to prevent content type sniffing
* Referrer-Policy to prevent leaking referrer information when navigating away from the instance

* Migrate from Docker sample to manual configuration

Migrate the additional security headers from the Docker configuration sample to the manual configuration guide.

Add DS_Store to gitingore

* Show order locale in order details

* Add OrderLocaleChange view and OrderLocaleForm

Refactor OrderLocaleForm. Add test
2017-04-11 10:45:46 +02:00
Raphael Michel
984d5c716b Integrate hierarkey package (#460) 2017-04-10 18:11:21 +02:00
Matthew Emerson
4accbef6a9 Fix #446 -- Choices for Event.currenxy attribute (#452)
* Change event currency to a choice attribute

* Added pycountry to requirements for currency list

* Fixed issues from flake8

* Added tests for event currency and added pycountry to setup.py

* Removed whitespace from test/control/test_events.py
2017-04-06 12:08:55 +02:00
Raphael Michel
ee1ccb7f01 Do not actually call the pretix server during tests 2017-04-02 22:12:14 +02:00
Raphael Michel
4919f8991c Automatic update checks (#434)
* Basic update checks

* Fix issues pointed out by @rixx

* First test

* Add tests

* Even more tests
2017-04-01 15:34:34 +02:00
jlwt90
af3e811f94 Fix #428 -- Timezone handling on event creation/update (#432)
* add event timezone during event creation

* add timezone handling in EventUpdate

* added event creation test cases & form cleaning bug fix
2017-03-13 16:44:05 +01:00
Raphael Michel
8418eb2c6b Add basic tests for event creation 2017-03-12 17:23:39 +01: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
Raphael Michel
d94c67bc7a Adjust test to previous change 2017-02-17 09:58:52 +01:00
Tobias Kunze
9b7223c0e8 Enforce a sane last payment date (#412) 2017-02-15 16:37:10 +01:00
Raphael Michel
824ca54478 Refs #386 -- Add unit test 2017-02-08 10:24:50 +01:00
Raphael Michel
c83f539bba Add waiting list 2017-02-07 10:03:30 +01:00
Raphael Michel
0acee0e362 Get rid of User.givenname and User.familyname 2017-01-07 16:35:04 +01:00
Raphael Michel
15b5e66da9 Add URL to permission test list 2017-01-07 14:13:14 +01:00
Raphael Michel
adbe966d85 Fixed failing test 2017-01-04 00:22:13 +01:00
Raphael Michel
e6f731ad77 New event creation wizard 2017-01-01 19:47:02 +01:00
Raphael Michel
0082216d75 Fix failing tests 2016-12-22 18:25:58 +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
95670dddc2 Add tests for GETting views in control/ 2016-11-17 23:50:42 +01:00
Raphael Michel
d2ce002305 Fix further problems with py.test 2016-11-08 15:25:38 +01:00
Raphael Michel
44b6777291 Fix compatibility with newer pytest versions 2016-11-07 11:57:08 +01:00
Raphael Michel
ad35110166 Offer download options per position, not per order 2016-11-02 14:51:05 +01:00
Tobias Kunze
c5fdf7c215 Include global settings in event/organizer settings
Also, add tests
2016-10-31 19:03:41 +01:00
Raphael Michel
05ecfdb9e2 Refs #273 -- Add backwards migration (noop) and fix tests 2016-10-20 17:56:48 +02:00
Raphael Michel
f22596a5a5 Fix #273 -- Set correct all order expiry times to the end of the day 2016-10-20 11:56:46 +02:00
Raphael Michel
503f6dd06f Use consistent flake8 settings everywhere and fix flake8 issues 2016-10-13 22:57:57 +02:00
Tobias Kunze
1e276b9d0a Remove AttendeeList view
It could not even filter for attendee and you can do everything (and
better and more) in the OrdersList. And it's one menu entry less to
clutter the interface.
2016-10-12 18:44:11 +02:00
Raphael Michel
888aba5714 2FA: Require recent authentication to change settings 2016-10-09 12:59:43 +02:00
Raphael Michel
2611b7619e 2FA: Added tests 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
d00eb41222 Merge branch 'django110' 2016-10-03 10:31:49 +02:00
Raphael Michel
197178fc52 Added error messages and tests to event settings pages 2016-10-02 19:13:55 +02:00
Raphael Michel
3bc2ddf79d Fixed a test that should have never worked 2016-09-27 11:06:43 +02:00
Raphael Michel
9ab3c20b2e Add a read-only view for quotas 2016-09-24 17:22:09 +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