-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Django 1.8 support #356
Comments
I don't see this result when running the tests ( |
Hey thanks for quick response. I created a test app here https://github.com/chhantyal/mptt-test With model https://github.com/chhantyal/mptt-test/blob/master/mptt_test/app/models.py Just clone, install requirements and run 'makemigrations' or any other commands. It will give error. Here is traceback http://dpaste.com/246NP6F This is issue with PyPi version as well as master branch |
Interesting. Seems this happens because django 1.8 no longer lets you call It's possible this code is all obsolete - from my brief reading of the If that doesn't pan out, we could probably work around this by doing |
I bumped into this playing with 1.8a1. A quick work-around:
This seems to work OK, for the now. |
@carlospalol wow, that looks very clever. Thanks. At least I can work with 1.8 until official support comes. |
Does anyone have a work-around? |
Current status: waiting to see what the outcome of that Django ticket is before implementing a fix. |
The upstream ticket has been closed (wontfix). Seems a possible solution is to call |
Still not quite working, but it's a step in the right direction. re #356
a note re this fix: But it turns out we don't need to inspect the fields at all to do what we need - just need to find the topmost concrete model base in the mro() which is a MPTTModel subclass. This simplifies things quite a bit so I went with that. Thanks for the bug reports. I don't intend to backport django 1.8 support to 0.6.x, but a 0.7 release probably isn't too far off. |
Thank you. That's great - we will be fine using master branch for now as Django 1.8 is not yet released 👍 |
As Django 1.8 is around the corner, it would be great if an 1.8-compatible release could be published on PyPI. |
Hi @craigds |
HEAD works fine for me with Django 1.8. please release it |
Yep, waiting for this too :) |
Done :) |
Thanks Craig, awesome! |
I am alpha testing Django 1.8
Meta API is formalised in 1.8 and as a result, method
get_fields_with_model
is deprecated.That method is used here
django-mptt/mptt/managers.py
Line 76 in 6a41fd4
Because of this, project which is on 1.7 is not able to to run on 1.8. Please refer to migration docs https://docs.djangoproject.com/en/1.8/ref/models/meta/#migrating-old-meta-api
The text was updated successfully, but these errors were encountered: