Re: Possible Bug - PositiveSmallIntegerField Enables Saving Negative Values

2014-09-19 Thread Patti Chen
I guess you're probably using SQLite as the database engine. "unsigned integer" and "signed integer" belong to same affinity in SQLite (http://www.sqlite.org/datatype3.html). Even if you specify "unsigned int" for the column during creation, you can save negative values without any error. If you us

Re: Possible Bug - PositiveSmallIntegerField Enables Saving Negative Values

2014-09-19 Thread Collin Anderson
Yes. I believe that type of validation only happens in forms, or if you manually call obj.full_clean(). -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-u

Possible Bug - PositiveSmallIntegerField Enables Saving Negative Values

2014-09-19 Thread Sy K.
I have generated a very simple test project using a fresh copy Django 1.7.0 with a model that has a PositiveSmallIntegerField, it is attached to this post. The ORM is not preventing instances being created with that field's value set to -1 >>> django.VERSION (1, 7, 0, 'final', 0) $ python man