On Sat, Mar 14, 2009 at 3:11 AM, msoulier <msoul...@digitaltorque.ca> wrote:
>
> Hi,
>
> Django 0.96 (yes, I know, we'll be at 1.0.2. soon), and I have a model
> full of PositiveIntegerField attributes.
>
> One of them is returning a string.
>
>>>> metrics.user_licenses_ca
> '315'
>>>> type(metrics.user_licenses_ca)
> <type 'str'>

It's possible that this is a known bug that has been fixed since v0.96
was released. Where exactly did metrics object come from? Is is a
newly created object, or was it obtained as the result of a query?

If it is a newly created object (including an object that has come
from a form or from a fixture), then this could be a manifestation of
bug #8298. This bug was fixed prior to the release of v1.0.

If metrics isn't a newly created object, then it would help if you
could provide a test case that would let us reproduce the problem.

Yours,
Russ Magee %_)

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