Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for the Django DurationField with DurationWidget. #575

Merged

Conversation

mgrdcm
Copy link
Contributor

@mgrdcm mgrdcm commented Feb 26, 2017

Django 1.8 added the DurationField which allows storing of a time duration (a Python timedelta).

Since there's no standard built-in parsing of timedelta, I'm tying this to Django's DurationField and using the parse_duration helper. This means it won't be supported on Django < 1.8, but this change handles that by ignoring them.

Also adding /django-import-export/ to gitignore because the tests create files there.

@bmihelac bmihelac merged commit 96c632d into django-import-export:master Feb 27, 2017
@bmihelac
Copy link
Member

Merged, thanks a lot!

@mgrdcm
Copy link
Contributor Author

mgrdcm commented Feb 27, 2017

You're very welcome. Thank you @bmihelac for django-import-export!

@mgrdcm
Copy link
Contributor Author

mgrdcm commented Feb 27, 2017

@bmihelac Should my PR have included an update to https://github.com/django-import-export/django-import-export/blob/master/docs/changelog.rst as well?

Also, do you have a plan for when you might do another release (I assume 0.6.0)?

@bmihelac
Copy link
Member

You're very welcome. Thank you @bmihelac for django-import-export!

@shaggyfrog has made huge job on django-import-export in last months :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants