#2443: Add IntervalField to database models
-------------------------------------+-------------------------------------
               Reporter:             |          Owner:  Adys
  ben.tucker@…                       |         Status:  new
                   Type:  New        |      Component:  Database layer
  feature                            |  (models, ORM)
              Milestone:             |       Severity:  Normal
                Version:  SVN        |       Keywords:  IntervalField
             Resolution:             |  interval duration DurationField
           Triage Stage:  Accepted   |  feature
    Needs documentation:  0          |      Has patch:  1
Patch needs improvement:  1          |    Needs tests:  1
                  UI/UX:  0          |  Easy pickings:  0
-------------------------------------+-------------------------------------
Changes (by Karen Rustad):

 * ui_ux:   => 0


Comment:

 This is a vote to get a DurationField (or whatever you want to call it)
 into Django 1.4. I'm currently running into this problem in that I need to
 represent an iteration length in some task management software I'm
 writing, where the length is set by the user and could be anything from a
 week to a month to a couple months (even more hilarity since months aren't
 consistent lengths). Of course, timedeltas are super-conveniently built
 into Python and can handle all of this in a snap...but in Django I have no
 way to store them. It's driving me nuts.

 Like, come on. If Django is Python, timedelta needs a model field.
 Without, it's incomplete.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/2443#comment:48>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to