#27044: `apps` passed to post_migrate_signal should contain migrated appconfigs even when no migration has been applied to them ----------------------------+-------------------------------------- Reporter: tkhyn | Owner: nobody Type: Bug | Status: new Component: Migrations | Version: 1.10 Severity: Normal | Resolution: Keywords: | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 ----------------------------+--------------------------------------
Comment (by tkhyn): Thanks for the reply, You could try and run the test suite for the app (I haven't pushed the changes to fix all the Django 2.0 warnings though so the suite will fail), or more simply use a minimal project in an environment with Django 1.10 installed: {{{ hg clone https://bitbucket.org/tkhyn/dj10_syncdb cd dj10_syncdb hg update a7614832e38a7f8f21cf474dc328c295a9d8fc3c }}} In this state, the sample project has one unmigrated app `app` with one model `MyModel`. Lets migrate. {{{ manage.py migrate }}} The django_content_type table now looks like: || id || app_label || model || || 1 || admin || logentry || || 2 || auth || permission || || 3 || auth || user || || 4 || auth || group || || 5 || contenttypes || contenttype || || 6 || sessions || session || || 7 || app || mymodel || ... and everything is ok so far. Let's add a new model to our unmigrated app. {{{ hg update dfd8067076c1ceb7d9a1ae48ddc27c0dfd64044c manage.py migrate }}} The django_content_type table has not changed. There should be a new line in django_content_type (app_label = app and model = mysecondmodel), and it's not there because the ``update_contenttypes`` cannot proceed further than line 102 when `migrate` is called a second time. A possible solution would be to transform `app` into a migrated app (I haven't checked it though), but given that it worked ok in django 1.9.9 I see this as a regression. Feel free to let me know if you require additional info on this. -- Ticket URL: <https://code.djangoproject.com/ticket/27044#comment:5> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/063.f8de8917ee2cdd682a2881b5cbd61506%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.