* remove duplicate context generation
* allow text templates in frontpage_text
* refactor: move placeholder functionality to separate file
* fix wrong class name, code style
* update year in license header
* undo license header update
* use new function name
* render only the placeholders that are actually used in the message
* refactoring
* add str(...) call
* Update doc/development/api/placeholder.rst
Co-authored-by: Raphael Michel <michel@rami.io>
* rename register_mail_placeholders to register_template_placeholders
(deprecate old name)
* isort
* add signals to docs
---------
Co-authored-by: Raphael Michel <michel@rami.io>
To create automated mail rules for specific subevents only, this adds a selection widget to choose which, only appearing if there are any subevents to select.
* feat(config): Add config options for max file upload sizes
Closes#2198
* Apply suggestions from code review
Fix docs and comment in settings.py
Co-authored-by: Richard Schreiber <wiffbi@gmail.com>
* Fix import order using isort
Co-authored-by: Richard Schreiber <wiffbi@gmail.com>
* sendmail: allow to attach files to emails
* Fix mixup of model objects and model IDs
* Attach to order-level emails, not only position-level emails
* Give attachments a proper file type
* Add a warning note about higher spam chances
Co-authored-by: Raphael Michel <mail@raphaelmichel.de>
* Upgrade Django to 3.0 and other dependencies to recent versions
* Fix otp version contsraint
* Remove six dependency
* Resolve some warnings
* Fix failing tests
* Update django-countries
* Resolve all RemovedInDjango31Warnings in test suite
* Run isort
* Fix import
* Update PostgreSQL version on travis
* Allow filtering mass-emails for Checkin Lists
* Allow filtering mass emails for not checked in
* Fix email filtering logic issue
* Use Select2 for checkin lists selection
* sendmail plugin: Make checkin list filtering optional
* Remove unused constant
* Re-size panel to only fit the right column
* Revert incorrect JavaScript change
* Change semantics of not_checked_in
* Introduce a subquery to filter on position properties
* .
* Add a position detail page to the frontend
* Mail templates
* Send mails
* Send reminder email
* Add position support to sendmail plugin
* Add and fix some tests
* Fix failing test on real databases
Placeholders in subject were not being replaced because there was
no `.format()` called on the subject.
This commit creates a context dict that is used for both the body
and the subject. It is then replaced using `.format_map()`
Fixes https://github.com/pretix/pretix/issues/531
* 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