-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fix for when _default_manager is a custom TreeManager and new tes…
…ts for custom TreeManagers. Squashed commit of the following: commit d55f90c8f0b0b6c90a91ba04b1db1e34af099593 Author: Benjamin Bach <benjaoming@gmail.com> Date: Thu Apr 23 02:32:20 2015 +0200 re-enable _default_manager and remove test that fails for some other reason on django 1.4 django-mptt/django-mptt#371 commit 3939f182564c2d1b32a70efb7a5c910234da3887 Author: Benjamin Bach <benjaoming@gmail.com> Date: Thu Apr 23 02:20:58 2015 +0200 Oh hi Travis, can you check this again to see how Django 1.4 likes _default_manager ? commit 17957e03d2b6f9abbf7db890914194489af2929e Author: Benjamin Bach <benjaoming@gmail.com> Date: Thu Apr 23 02:09:20 2015 +0200 also assert that the classic version of .none() is compatible with the custom manager's queryset commit 1cf707d0dae042387f3fae1e34739860f1dbdf2d Author: Benjamin Bach <benjaoming@gmail.com> Date: Thu Apr 23 01:59:22 2015 +0200 fix for django-mptt/django-mptt#371 by customizing test to behave differently if it's pre django 1.6 commit fcf90deeaf1f4e4d4a3bb9e8be265cd4e475d576 Author: Benjamin Bach <benjaoming@gmail.com> Date: Thu Apr 23 01:47:20 2015 +0200 Re-add _default_manager but uncomment test that's generally failing on django 1.4 commit 073698bf2f13b5ab3b77916ce434a46a183c83f6 Author: Benjamin Bach <benjaoming@gmail.com> Date: Thu Apr 23 01:26:59 2015 +0200 Hi Travis, please test if this works with Django 1.4 because it didnt B4 commit 04308a02f3a0fb2b3e2e9a8a55593de330c3aaaa Author: Benjamin Bach <benjaoming@gmail.com> Date: Thu Apr 23 01:13:41 2015 +0200 Renaming custom manager in doctests commit 92737e9890babe7f310ad0bd4b0594d49c000eb8 Author: Benjamin Bach <benjaoming@gmail.com> Date: Thu Apr 23 01:04:19 2015 +0200 Add optimization: If conventional "objects" attr exists, just use that and don't iterate everything else, also fixes django-mptt/django-mptt#369 commit 2b47ffd611158fa91c44398e584b2c5f1f1e96bf Author: Benjamin Bach <benjaoming@gmail.com> Date: Thu Apr 23 01:03:42 2015 +0200 Add test cases that fail when using _default_manager and objects django-mptt/django-mptt#369 commit 1ba49283070e2fda7d00bdd2680a0f9a039c890f Author: Benjamin Bach <benjaoming@gmail.com> Date: Thu Apr 23 01:02:25 2015 +0200 Add a custom method and a _default_manager that points to "objects" to reflect a practice that may or may not exist out there in the wild django-mptt/django-mptt#369 commit 00933d01a3974c088330fb77bfeb7e65dbecf185 Author: Benjamin Bach <benjaoming@gmail.com> Date: Thu Apr 23 01:01:56 2015 +0200 add a single row on the Person test model
- Loading branch information
1 parent
c470d90
commit 9ed48b4
Showing
5 changed files
with
76 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ | ||
{ | ||
"pk": 1, | ||
"model": "myapp.person", | ||
"fields": { | ||
"rght": 16, | ||
"name": "John Doe", | ||
"parent": null, | ||
"level": 0, | ||
"lft": 1, | ||
"tree_id": 1 | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters