Comments (2)
Are you sure you are on 0.8.1? This error existed in 0.8, but I fixed it yesterday morning in 0.8.1.
I can't replicate your example on 0.8.1. Can you double check?
Thanks,
Corey
On Aug 30, 2011, at 1:11 AM, roadhead wrote:
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53) [GCC 4.5.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from categories.models import Category >>> c = Category() >>> c.name = "China" >>> c.save() Traceback (most recent call last): File "<console>", line 1, in <module> File "/bundles/port-8488/app_image/pyenv/lib/python2.7/site-packages/categories/models.py", line 104, in save for item in self.get_descendants(): File "/bundles/port-8488/app_image/pyenv/lib/python2.7/site-packages/mptt/models.py", line 222, in get_descendants if not include_self and self.is_leaf_node(): File "/bundles/port-8488/app_image/pyenv/lib/python2.7/site-packages/mptt/models.py", line 358, in is_leaf_node return not self.get_descendant_count() File "/bundles/port-8488/app_image/pyenv/lib/python2.7/site-packages/mptt/models.py", line 244, in get_descendant_count self._mpttfield('left') - 1) / 2 TypeError: unsupported operand type(s) for -: 'NoneType' and 'NoneType'This is after upgrading from 0.7.1 to 0.8.1
Reply to this email directly or view it on GitHub:
#24
from django-categories.
Yep, I noticed that pretty much as soon as I wrote this and then promptly closed the issue.
Thanks!
from django-categories.
Related Issues (20)
- Overriding Category Detail View HOT 2
- Make manager available in RunPython
- Upgrade version of unicode-slugify? HOT 1
- Missing shipped migration files HOT 1
- Duplicated migrations of models registered through settings HOT 1
- New migration created in site-packages
- New migration created in site-packages
- 'staticfiles' is not a registered tag library. HOT 1
- app list not showing HOT 1
- Implement Jazzband guidelines for django-categories
- Add `jazzband-bot` as maintainer to the Read the Docs project (e.g. URL: https://readthedocs.org/dashboard/django-categories/users/)
- Admin site doesn't show left panel
- Current master not installable from source HOT 2
- Module not found HOT 10
- What is the state of this project? HOT 1
- setting “python_requires” with ">3,!=3.10" is a better way to declare Python compatibility HOT 2
- treetable.js not loaded correctly due to django.jQuery not defined (js load order)
- Doc
- Add support for STORAGES settings introduced in Django 4.2 HOT 1
- New release 1.9.3 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-categories.