Storing durations on Django models
I just released a package on PyPI: thecut-durationfield is a Django app that provides model and form fields for working with durations. The durations are stored as ISO 8601 compatible strings, and the model field returns dateutil.relativedelta objects.
I've been using it for things like subscription models, where I want to figure out when a customer needs to be charged.
The code is up on github, so take a look and if you have any problems, get in touch.