Compare commits

...

11 Commits

Author SHA1 Message Date
Raphael Michel
8e20b07610 Fix MySQL package 2018-05-28 10:12:47 +02:00
Raphael Michel
ffeb1e1746 Bump version to 1.15.2 2018-05-28 10:06:18 +02:00
Felix Rindt
4692b3e9d2 Fix bug in date/time question stats (#916)
Fix bug in date/time question stats
2018-05-28 10:05:30 +02:00
Raphael Michel
98ea9ae91c Fix setup.py 2018-05-28 09:59:59 +02:00
Raphael Michel
40f401b549 Upgrade kombu 2018-05-28 09:59:59 +02:00
Raphael Michel
37e279bf27 Pin celery version 2018-05-28 09:59:59 +02:00
Raphael Michel
92addff5d3 Bump version to 1.15.1 2018-05-11 14:50:44 +02:00
Felix Rindt
585578edf2 Add subevent bulk create button when no exist (#904) 2018-05-11 14:46:06 +02:00
Raphael Michel
12271047e6 Fix #903 -- Incorrect price calculation for variations 2018-05-11 14:46:06 +02:00
robbi5
8413269c32 Add badge plugin support to MANIFEST.in (#902) 2018-05-11 14:46:06 +02:00
Raphael Michel
1f01ef6e37 Do not show end time if not set 2018-05-11 14:46:06 +02:00
9 changed files with 15 additions and 10 deletions

View File

@@ -3,7 +3,7 @@ FROM python:3.6
RUN apt-get update && \
apt-get install -y git libxml2-dev libxslt1-dev python-dev python-virtualenv locales \
libffi-dev build-essential python3-dev zlib1g-dev libssl-dev gettext libpq-dev \
libmysqlclient-dev libmemcached-dev libjpeg-dev supervisor nginx sudo \
default-libmysqlclient-dev libmemcached-dev libjpeg-dev supervisor nginx sudo \
--no-install-recommends && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \

View File

@@ -18,3 +18,5 @@ recursive-include pretix/plugins/stripe/templates *
recursive-include pretix/plugins/stripe/static *
recursive-include pretix/plugins/ticketoutputpdf/templates *
recursive-include pretix/plugins/ticketoutputpdf/static *
recursive-include pretix/plugins/badges/templates *
recursive-include pretix/plugins/badges/static *

View File

@@ -1 +1 @@
__version__ = "1.15.0"
__version__ = "1.15.2"

View File

@@ -465,7 +465,7 @@ class ItemVariation(models.Model):
return self.default_price if self.default_price is not None else self.item.default_price
def tax(self, price=None):
price = price or self.price
price = price if price is not None else self.price
if not self.item.tax_rule:
return TaxedPrice(gross=price, net=price, tax=Decimal('0.00'), rate=Decimal('0.00'), name='')
return self.item.tax_rule.tax(price)

View File

@@ -16,6 +16,9 @@
<a href="{% url "control:event.subevents.add" organizer=request.event.organizer.slug event=request.event.slug %}"
class="btn btn-primary btn-lg"><i class="fa fa-plus"></i>
{% trans "Create a new date" context "subevent" %}</a>
<a href="{% url "control:event.subevents.bulk" organizer=request.event.organizer.slug event=request.event.slug %}"
class="btn btn-primary btn-lg"><i class="fa fa-plus"></i>
{% trans "Create many new dates" context "subevent" %}</a>
</div>
{% else %}
<form class="row filter-form" action="" method="get">

View File

@@ -428,11 +428,11 @@ class QuestionView(EventPermissionRequiredMixin, QuestionMixin, ChartContainingV
del a['options__answer']
elif self.object.type in (Question.TYPE_TIME, Question.TYPE_DATE, Question.TYPE_DATETIME):
qs = qs.order_by('answer')
qs_model = qs
qs = qs.values('answer').annotate(count=Count('id')).order_by('-count')
for a, a_model in zip(qs, qs_model):
model_cache = {a.answer: a for a in qs}
qs = qs.values('answer').annotate(count=Count('id')).order_by('answer')
for a in qs:
a['alink'] = a['answer']
a['answer'] = str(a_model)
a['answer'] = str(model_cache[a['answer']])
else:
qs = qs.order_by('answer').values('answer').annotate(count=Count('id')).order_by('-count')

View File

@@ -167,7 +167,7 @@
{% blocktrans trimmed with time=ev.date_from|date:"TIME_FORMAT" %}
Begin: {{ time }}
{% endblocktrans %}
{% if event.settings.show_date_to %}
{% if event.settings.show_date_to and ev.date_to %}
<br>
{% blocktrans trimmed with time=ev.date_to|date:"TIME_FORMAT" %}
End: {{ time }}

View File

@@ -17,7 +17,7 @@ django-otp==0.3.*
python-u2flib-server==4.*
django-formtools==2.0
celery==4.1.*
kombu==4.1.*
kombu==4.2.*
django-statici18n==1.3.*
inlinestyler==0.2.*
BeautifulSoup4

View File

@@ -82,7 +82,7 @@ setup(
'python-u2flib-server==4.*',
'django-formtools==2.0',
'celery==4.1.*',
'kombu==4.1.*',
'kombu==4.2.*',
'django-statici18n==1.3.*',
'inlinestyler==0.2.*',
'BeautifulSoup4',