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

PostgreSQL backend

I thought that the PositiveIntegerField would enforce the correct
type. Is that not true?

I checked the code populating this too, and it's populated from a
string inside of an int() call, so it should be an integer when it is
set. I thought that was required...

Thanks,
Mike
--~--~---------~--~----~------------~-------~--~----~
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