Ticket #16088: management.diff
File management.diff, 392 bytes (added by , 13 years ago) |
---|
Line | |
---|---|
1 | 9a10 |
2 | > db = 'default' |
3 | 11c12 |
4 | < content_types = list(ContentType.objects.filter(app_label=app.__name__.split('.')[-2])) |
5 | --- |
6 | > content_types = list(ContentType.objects.using(db).filter(app_label=app.__name__.split('.')[-2])) |
7 | 18c19 |
8 | < ct = ContentType.objects.get(app_label=opts.app_label, |
9 | --- |
10 | > ct = ContentType.objects.using(db).get(app_label=opts.app_label, |