hello,

i need a datetime field with an associated precision value. the
precision shows which parts of the datatime field are used. in other
words, my datatime field can contain just a year, or a year and a
month, etc. similar to postgres' DATE_TRUNC function. i know i can
just throw in two fields in to my model, but i was wondering whether
it is possible to define a field that maps to two columns in the
database and hides all the implementation details about precision.

thanks for any input
konstantin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to