Re: annotate() type coercion

2009-08-26 Thread Georg Göttlich

Hello Karen,

thanx a lot for the information and sorry for being so unspecific.
Sounds like my problem. I'm using python 2.5 and sqlite3 (in my dev
environment). So I'll try to upgrade sqlite.

Cheers,
Georg

On 26 Aug., 14:05, Karen Tracey  wrote:
> 2009/8/26 Georg Göttlich 
>
>
>
> > Hello everybody,
>
> > I'm not sure if this is a bug in django or if it works as designed.
> > That's why I'm asking here first, before filing a bug.
>
> > When using annote() on a model, it's date values become unicode
> > values.
>
> > Is this normal behavior and if so, is there a way to prevent this?
>
> Sounds like:
>
> http://code.djangoproject.com/ticket/10031
>
> Though since you don't mention OS, DB, and Python level it is hard to be
> sure.  Windows with Python 2.5 and using sqlite is the only time I recall
> this being reported, though.  If that is what you are using then at a
> minimum you will want to update the level of sqlite you are using.  If not,
> details of exactly what you are running would help.
>
> Karen
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: annotate() type coercion

2009-08-26 Thread Karen Tracey
2009/8/26 Georg Göttlich 

>
> Hello everybody,
>
> I'm not sure if this is a bug in django or if it works as designed.
> That's why I'm asking here first, before filing a bug.
>
> When using annote() on a model, it's date values become unicode
> values.
>
> Is this normal behavior and if so, is there a way to prevent this?
>
>
Sounds like:

http://code.djangoproject.com/ticket/10031

Though since you don't mention OS, DB, and Python level it is hard to be
sure.  Windows with Python 2.5 and using sqlite is the only time I recall
this being reported, though.  If that is what you are using then at a
minimum you will want to update the level of sqlite you are using.  If not,
details of exactly what you are running would help.

Karen

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



annotate() type coercion

2009-08-26 Thread Georg Göttlich

Hello everybody,

I'm not sure if this is a bug in django or if it works as designed.
That's why I'm asking here first, before filing a bug.

When using annote() on a model, it's date values become unicode
values.

Is this normal behavior and if so, is there a way to prevent this?


Cheers,
Georg Göttlich
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---