Nothing native. I'd store it in seconds, as an int, and let the model
convert to and from a timedelta. Looks like there's a snippet all
ready to go:
http://djangosnippets.org/snippets/1060/
On Aug 9, 6:32 am, Mohamed Ghoneim wrote:
> Hey guys,
>
> I am just wondering if there is a time duration
Hey guys,
I am just wondering if there is a time duration field in django models.
what I want to do is a field that takes a time duration in days, hours,
mins, seconds and store it into the database.
--
Mohamed Sayed Ghoneim
--
You received this message because you are subscribed to the Google
2 matches
Mail list logo