Django proxy model cannot be migrated when upgrading 1.4 -> 1.7 -


having model below

from django.contrib.auth.models import user # has migrations in 1.7  class myproxyuser(user):     class meta:         proxy = true 

in app without migrations gives following error when running tests:

django.db.migrations.state.invalidbaseserror: cannot resolve bases [<modelstate: 'django_proxy_model_problems.myproxyuser'>] can happen if inheriting models app migrations (e.g. contrib.auth)  in app no migrations; see https://docs.djangoproject.com/en/1.7/topics/migrations/#dependencies more 

having read both

i can't figure out should doing resolve problem (manage.py makemigrations reports no changes detected)

the problem can reproduced running tox -e py27-django17 using this github repo

this can reproduced django 1.7 & 1.8, works fine 1.4

run manage.py makemigrations <app_label>. django won't create migration folder if doesn't exist, unless explicitly specify app label. because apps without migrations (still) supported.

if migrations folder exists within app, , has __init__.py file (even on python 3), django pick app migrated app, , create migrations manage.py makemigrations.


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -