Closed jacobg closed 11 years ago
@jacobg thanks for the report.
As of django-durationfield 0.4.0, support for Django 1.3 was dropped, so that we could target Django 1.5 on both Python 2 and 3.
Django 1.4.2 introduced six and smart_text, so if you are running 1.4, please upgrade (I believe that 1.4.5 is the latest in the 1.4 branch). If you wish to use Django 1.3 (which is now unsupported itself), consider pinning to django-durationfield 0.3.x, as most of the 0.4 changes related to porting to Python 3.3.
The documentation was unclear on this point and I have since updated it to explain this situation.
Thanks so much John. 0.3.4 is great for Django 1.3.
duration.py uses 1.5-only features: