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
'NoneType' object has no attribute 'tree_id' #428
Comments
Thank you for the report! Do you have some additional details such as the model itself? Will probably be a big help for constructing a test case. |
Nice, now I can reproduce this, even without It seems that setting (As you have seen assigning |
Additional testing reveals that this works:
|
* master: Fix django-mptt#428: Do not crash when saving after direct assignment of parent_id
* upstream/0.8.x: (23 commits) 0.8.5 Fix the tests on 0.8.x branch. We don't have list filters in 0.8.x Fix django-mptt#428: Do not crash when saving after direct assignment of parent_id Fix django-mptt#480: Broken links in README Keep the state of nodes when opening new tabs Tutorial: Run makemigrations before migrate Replaced syncdb by migrate Multiple databases configuration support Refs django-mptt#455: Recommend running rebuild() inside a transaction Fix django-mptt#465: DraggableMPTTAdmin: Ignore arrow keys for navigation when on form element Fix django-mptt#475: Remove Django from install_requires Fix django-mptt#473: _meta has no attribute concrete_managers fix more using get_db_prep_value Fix TreeManager._move_child_within_tree breaks with UUIDField() as primary key. Provide for the new 'required' input attribute in Django 1.10 Exclude tests from installed packages Stop using Model._deferred private attribute Simplified runtests.sh Add exclude djmaster & (py32,py33) exclude in TravisCI Add django master to failurable tests in TravisCI ...
* master: (25 commits) 0.8.5 Fix the tests on 0.8.x branch. We don't have list filters in 0.8.x 0.8.5 Fix django-mptt#428: Do not crash when saving after direct assignment of parent_id Fix django-mptt#428: Do not crash when saving after direct assignment of parent_id Fix django-mptt#480: Broken links in README Keep the state of nodes when opening new tabs Tutorial: Run makemigrations before migrate Replaced syncdb by migrate Multiple databases configuration support Refs django-mptt#455: Recommend running rebuild() inside a transaction Fix django-mptt#465: DraggableMPTTAdmin: Ignore arrow keys for navigation when on form element Fix django-mptt#475: Remove Django from install_requires Fix django-mptt#473: _meta has no attribute concrete_managers fix more using get_db_prep_value Fix TreeManager._move_child_within_tree breaks with UUIDField() as primary key. Provide for the new 'required' input attribute in Django 1.10 Exclude tests from installed packages Stop using Model._deferred private attribute Simplified runtests.sh ...
Присвоение связей mptt через _id вызывает неверное поведение. django-mptt/django-mptt#428
Присвоение связей mptt через _id вызывает неверное поведение. django-mptt/django-mptt#428
Присвоение связей mptt через _id вызывает неверное поведение. django-mptt/django-mptt#428
Updating a root elements fiels which is the "order_insertion_by" raises:
'NoneType' object has no attribute 'tree_id'
I solved this bij adding two lines of code.
The text was updated successfully, but these errors were encountered: