Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default settings for background color, invoice attachments and name scheme #32 #38

Closed
wants to merge 10 commits into from
18 changes: 18 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates


version: 2

updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
versioning-strategy: increase
- package-ecosystem: "npm"
directory: "/src/pretix/static/npm_dir"
schedule:
interval: "daily"
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
name: Tests
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
python-version: [3.8]
database: [sqlite, postgres, mysql]
exclude:
- database: mysql
Expand All @@ -33,7 +33,7 @@ jobs:
- uses: actions/checkout@v2
- uses: getong/mariadb-action@v1.1
with:
mariadb version: '10.4'
mariadb version: '10.10'
mysql database: 'pretix'
mysql root password: ''
if: matrix.database == 'mysql'
Expand Down Expand Up @@ -75,4 +75,4 @@ jobs:
with:
file: src/coverage.xml
fail_ci_if_error: true
if: matrix.database == 'postgres' && matrix.python-version == '3.8'
if: matrix.database == 'postgres' && matrix.python-version == '3.11'
2 changes: 1 addition & 1 deletion doc/admin/installation/docker_smallscale.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ installation guides):
* `Docker`_
* A SMTP server to send out mails, e.g. `Postfix`_ on your machine or some third-party server you have credentials for
* A HTTP reverse proxy, e.g. `nginx`_ or Apache to allow HTTPS connections
* A `PostgreSQL`_ 9.5+, `MySQL`_ 5.7+, or MariaDB 10.2.7+ database server
* A `PostgreSQL`_ 11+, `MySQL`_ 5.7+, or MariaDB 10.2.7+ database server
* A `redis`_ server

We also recommend that you use a firewall, although this is not a pretix-specific recommendation. If you're new to
Expand Down
2 changes: 2 additions & 0 deletions src/pretix/base/models/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,8 @@ def set_defaults(self):
self.settings.ticketoutput_pdf__enabled = True
self.settings.ticketoutput_passbook__enabled = True
self.settings.event_list_type = 'calendar'
self.settings.invoice_email_attachment = True
self.settings.name_scheme = 'given_family'

@property
def social_image(self):
Expand Down
16 changes: 8 additions & 8 deletions src/pretix/base/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def unserialize(cls, s):
)
},
'invoice_include_expire_date': {
'default': 'False',
'default': 'True',
'type': bool,
'form_class': forms.BooleanField,
'serializer_class': serializers.BooleanField,
Expand Down Expand Up @@ -408,7 +408,7 @@ def unserialize(cls, s):
)
},
'invoice_renderer': {
'default': 'classic',
'default': 'modern1',
'type': str,
},
'ticket_secret_generator': {
Expand Down Expand Up @@ -796,7 +796,7 @@ def unserialize(cls, s):
'type': str
},
'invoice_email_attachment': {
'default': 'False',
'default': 'True',
'type': bool,
'form_class': forms.BooleanField,
'serializer_class': serializers.BooleanField,
Expand Down Expand Up @@ -1117,7 +1117,7 @@ def unserialize(cls, s):
)
},
'event_list_type': {
'default': 'list',
'default': 'calendar',
'type': str,
'form_class': forms.ChoiceField,
'serializer_class': serializers.ChoiceField,
Expand Down Expand Up @@ -1787,7 +1787,7 @@ def unserialize(cls, s):
),
},
'theme_color_success': {
'default': '#50A167',
'default': '#50a167',
'type': str,
'form_class': forms.CharField,
'serializer_class': serializers.CharField,
Expand All @@ -1808,7 +1808,7 @@ def unserialize(cls, s):
),
},
'theme_color_danger': {
'default': '#C44F4F',
'default': '#c44f4f',
'type': str,
'form_class': forms.CharField,
'serializer_class': serializers.CharField,
Expand All @@ -1829,7 +1829,7 @@ def unserialize(cls, s):
),
},
'theme_color_background': {
'default': '#FFFFFF',
'default': '#f5f5f5',
'type': str,
'form_class': forms.CharField,
'serializer_class': serializers.CharField,
Expand Down Expand Up @@ -2235,7 +2235,7 @@ def unserialize(cls, s):
)
},
'name_scheme': {
'default': 'full',
'default': 'given_family',
'type': str
},
'giftcard_length': {
Expand Down
2 changes: 2 additions & 0 deletions src/pretix/static/pretixpresale/scss/main.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//$body-bg: #f5f5f5 !default;

@import "../../pretixbase/scss/_variables.scss";
@import "../../bootstrap/scss/_bootstrap_reduced.scss";
@import "../../pretixbase/scss/_theme.scss";
Expand Down
Loading