Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

# -*- coding: utf-8 -*- 

# Generated by Django 1.11.20 on 2019-04-15 18:22 

from __future__ import unicode_literals 

 

from django.db import migrations 

 

 

def cancel_inactive_members_debts(apps, schema_editor): 

Member = apps.get_model('members', 'Member') 

10 ↛ 11line 10 didn't jump to line 11, because the loop on line 10 never started for member in Member.objects.filter(is_active=False, account_balance__lt=0): 

member.account_balance = 0 

member.save() 

 

 

class Migration(migrations.Migration): 

 

dependencies = [ 

('members', '0033_member_wants_datenschleuder'), 

] 

 

operations = [ 

migrations.RunPython(cancel_inactive_members_debts, reverse_code=migrations.RunPython.noop), 

]