Project

General

Profile

« Previous | Next » 

Revision 5978c161

Added by Mikaël Ates over 10 years ago

actes: complete the setting of already billed field in the data migration.

View differences:

calebasse/actes/migrations/0009_set_act_already_billed.py
7 7
class Migration(DataMigration):
8 8

  
9 9
    def forwards(self, orm):
10
        orm.Act.objects.filter(is_billed=True).update(already_billed=True)
10 11
        orm.Act.objects.exclude(invoice=None).update(already_billed=True)
11 12

  
12 13
    def backwards(self, orm):

Also available in: Unified diff