#2443: Add IntervalField to database models
---------------------------------------------------+------------------------
          Reporter:  ben.tuc...@gmail.com          |         Owner:  Gulopine   
                                  
            Status:  new                           |     Milestone:             
                                  
         Component:  Database layer (models, ORM)  |       Version:  SVN        
                                  
        Resolution:                                |      Keywords:  
IntervalField interval duration DurationField
             Stage:  Accepted                      |     Has_patch:  1          
                                  
        Needs_docs:  0                             |   Needs_tests:  1          
                                  
Needs_better_patch:  1                             |  
---------------------------------------------------+------------------------
Comment (by Adys):

 For the interface part, there's two decent choices.[[BR]]
 Either go for a parse of the values in a single field, for example (input)
 "3d 12h 4m 7s", "7d 10m", "150000 ms"; output would be highest value
 possible first - 60000ms would be "1m", 75000ms would be "1m 15s"
 (abbreviations are up for change, would go for the standard ones).[[BR]]
 [[BR]]
 Or, go for a single field with a <select> box, with some js shortcuts.
 [___________] [ Unit ... ] (X)[[BR]][[BR]]

 In both cases, the possible units would be years, months, weeks, days,
 hours, minutes, seconds, milliseconds, microseconds (assuming microsecond
 precision). Thoughts?

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2443#comment:25>
Django <http://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 django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to