Re: [multidb] emit_pre_migrate_signal / emit_post_migrate_signal in Django 1.8

2015-08-05 Thread Marcin Nowak
On Wednesday, August 5, 2015 at 7:42:16 PM UTC+2, Tim Graham wrote: > > There is a check a few lines above the snippet you linked for > "allow_migrate_model('other', Permission)". Is that returning the correct > result? I don't think you can create permissions in the 'other' db without > conte

Re: [multidb] emit_pre_migrate_signal / emit_post_migrate_signal in Django 1.8

2015-08-05 Thread Tim Graham
There is a check a few lines above the snippet you linked for "allow_migrate_model('other', Permission)". Is that returning the correct result? I don't think you can create permissions in the 'other' db without content types since they are linked by a foreign key. p.s. "Is it a bug" questions s

[multidb] emit_pre_migrate_signal / emit_post_migrate_signal in Django 1.8

2015-08-05 Thread Marcin Nowak
Hi, it's me again. I'm managing migrations myself without using builtin migrations. My project is using many databases and I'm calling schema migration separately for each database, providing database alias as a command argument. I'm also emitting pre- and post- migrate signals. The problem i