Re: state_operations while adding 2 fields

2019-05-31 Thread Axel Rau
> Am 31.05.2019 um 13:15 schrieb Axel Rau : > > is it posible to bundle 2 AddField migrations with one RunPython? > How should I arrange the state_operations in this case? > > The following migration does not work. It seems, the variant below does the job. However there is no state operation

state_operations while adding 2 fields

2019-05-31 Thread Axel Rau
Hi all, is it posible to bundle 2 AddField migrations with one RunPython? How should I arrange the state_operations in this case? The following migration does not work. Please advice, Axel def forwards_func(apps, schema_editor): with connections['erdb_migration'].cursor() as cursor: