Remove some irregularities in 8abfbba9

This commit is contained in:
Raphael Michel
2019-01-10 17:41:18 +01:00
parent 336a34b10b
commit a8836cbeec
3 changed files with 3 additions and 4 deletions

View File

@@ -8,8 +8,7 @@ from django.db import migrations, models
def change_refunded_to_canceled(apps, schema_editor):
Order = apps.get_model('pretixbase', 'Order')
Order.objects.filter(status='r').update(status='c', total=0)
Order.objects.filter(status='c').update(total=0)
Order.objects.filter(status='r').update(status='c')
class Migration(migrations.Migration):