-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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 DurationField
.
#2481
Comments
Docs: https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.DurationField What should the representation for this be? |
Hrm.
|
I personally don't mind pushing this back as well. I like we're already supporting "popular"(or what in my opinion are more seen and useful cases) fields like UUIDField, DictField, and HStoreField. Perhaps pushing this one back, and work on ArrayField(#2107) for it's current 3.1.0 milestone? |
👍 |
There's some weird behaviour with this at the moment actually. A ModelSerializer with a (django) DurationField serializes via |
@thedrow Sounds reasonable, yep. |
Is there any guess on when this might sneak into the codebase? I'm just trying to plan for adding a duration field to one of my models. |
@rpcastagna Its absolutely not a priority. If anything it might make sense for it to be considered as a third party package first. |
Closing this as part of #2989. Feel free to reopen if there is more to be done. |
For
ModelSerializer
classes this should be mapped to by Django 1.8'sDurationField
.The text was updated successfully, but these errors were encountered: