Fix #273 -- Set correct all order expiry times to the end of the day

This commit is contained in:
Raphael Michel
2016-10-20 11:39:22 +02:00
parent bbca4e3d64
commit f22596a5a5
7 changed files with 40 additions and 16 deletions

View File

@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-19 17:57
from __future__ import unicode_literals
from django.db import migrations
def forwards(apps, schema_editor):
Order = apps.get_model('pretixbase', 'Order')
for order in Order.objects.all():
order.expires = order.expires.replace(hour=23, minute=59, second=59)
order.save()
class Migration(migrations.Migration):
dependencies = [
('pretixbase', '0040_u2fdevice'),
]
operations = [
migrations.RunPython(forwards)
]