You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
550 B
22 lines
550 B
# Generated by Django 2.0.7 on 2019-03-27 20:55
|
|
|
|
from django.utils import timezone
|
|
from django.db import migrations
|
|
|
|
|
|
def fill_bonuses_notified_at(apps, schema_editor):
|
|
UserBonus = apps.get_model('payment', 'UserBonus')
|
|
for ub in UserBonus.objects.filter(notified_at__isnull=True):
|
|
ub.notified_at = timezone.now()
|
|
ub.save()
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('payment', '0033_userbonus_notified_at'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RunPython(fill_bonuses_notified_at),
|
|
]
|
|
|