Hi Folks,
I've just tried to add a time field to one of my models, and then I
ran:
ALTER TABLE blah ADD COLUMN blah_blah TIME;
UPDATE blah SET blah_blah='09:00:00'
I restarted apache, and I can see my current entries are showing 9am
correctly in the new "blah_blah" field, but when I try to add
Nevermind - problems solved
It was:
lookup_variables = {
'timestamp__year' : d.year,
'timestamp__month' : d.month,
'timestamp__day' : d.day,
}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Thanks, Russ.
Apologies for posting on the wrong list. I'll post a thread there
instead, as I'm having some problems with implementing this.
Thanks, Tom
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django deve
Hi Folks,
Is it possible to have dynamic db api lookups? In other words, I want
to be able to generate a get_list statement conditionally based on some
user options. For example:
Here's what I'm currently doing:
if status:
object_list = logs.get_list(
timestamp__year = d.yea