johnpaulett / django-durationfield

Temporary reusable Django application for adding a DurationField, until Django issue #2443 is resolved.
http://django-durationfield.readthedocs.org
67 stars 24 forks source link

Breaks in Django 1.3/1.4 #10

Closed jacobg closed 11 years ago

jacobg commented 11 years ago

duration.py uses 1.5-only features:

johnpaulett commented 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.

jacobg commented 11 years ago

Thanks so much John. 0.3.4 is great for Django 1.3.