Changes between Version 2 and Version 3 of Ticket #30431
- Timestamp:
- May 2, 2019, 6:35:12 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30431 – Description
v2 v3 33 33 def gen_uuid(apps, schema_editor): 34 34 UserModel = apps.get_model('myapp', 'customuser') 35 for row in UserModel.objects.all(): # .objects.using(' foobar').all(): -- HANGS !35 for row in UserModel.objects.all(): # .objects.using('nondefault').all(): -- HANGS ! 36 36 row.uniq_id = uuid.uuid4() 37 row.save(update_fields=['uniq_id']) # .save(using='foobar', ...) -- HANGS with database routers !37 row.save(update_fields=['uniq_id']) 38 38 39 39 class Migration(migrations.Migration):