forked from CGM_Public/pretix_original
Compare commits
10 Commits
global_app
...
v1.15.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ffeb1e1746 | ||
|
|
4692b3e9d2 | ||
|
|
98ea9ae91c | ||
|
|
40f401b549 | ||
|
|
37e279bf27 | ||
|
|
92addff5d3 | ||
|
|
585578edf2 | ||
|
|
12271047e6 | ||
|
|
8413269c32 | ||
|
|
1f01ef6e37 |
@@ -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 *
|
||||
|
||||
@@ -1 +1 @@
|
||||
__version__ = "1.15.0"
|
||||
__version__ = "1.15.2"
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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')
|
||||
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user