Ticket 683

2005-10-22 Thread Jeremy Dunck
I've added a half-patch to ticket 683. I don't understand all the magick going down in meta and models, but I hope the bit I did was useful.

Re: MS SQL date vs. datetime problem

2005-10-22 Thread Jakub Labath
On 10/22/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > What you need to do is make sure the driver typecasts datetime > database fields to Python datetime.date objects, and date database > fields to Python datetime.date objects. Some database drivers do this > automatically, but others provid

Re: MS SQL date vs. datetime problem

2005-10-22 Thread Jeremy Dunck
On 10/22/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > What you need to do is make sure the driver typecasts datetime > database fields to Python datetime.date objects, and date database > fields to Python datetime.date objects. Some database drivers do this > automatically, but others provide

Re: MS SQL date vs. datetime problem

2005-10-22 Thread Adrian Holovaty
On 10/22/05, Jakub Labath <[EMAIL PROTECTED]> wrote: > my model in dateapp is > # Create your models here. > class MyDate(meta.Model): > day=meta.DateField() > > now follows the session from python interpreter > > >>> from django.models.dateapp import mydates > >>> d = mydates.MyDate(day=datet

Re: MS SQL date vs. datetime problem

2005-10-22 Thread Jakub Labath
Hi > > But DateTime objects can be used to represent both; you just have a > DateTime object with no time values. Yes true, but it creates an error when running unittests, and I'm assuming the tests are in place for a reason. Best jakub

Re: MS SQL date vs. datetime problem

2005-10-22 Thread Jonathan Daugherty
# oops # I put in date and I get datetime back. But DateTime objects can be used to represent both; you just have a DateTime object with no time values. -- Jonathan Daugherty http://www.parsed.org