Hi, I'm doing my development with sqlite and my production deployment with postgres. I have this model
class Service(models.Model): name = models.CharField(max_length=256) description = models.CharField(max_length=4096, default='') username = models.CharField(max_length=256) password = models.CharField(max_length=256) enabled = models.BooleanField(default=False) access = models.CharField(max_length=16, default="private") So I created this fixture [ { "pk": "ftpd", "model": "main.service", "fields": { "description": "An FTP service for blah blah blah", "enabled": false, "access": "private", "username": "mcd", "password": "" } } ] When I tried to load the fixture this error occurred Installing json fixture 'initial_data' from '/home/msoulier/work/mitel- msl-webproxy/root/etc/e-smith/web/django/webproxy/../webproxy/main/ fixtures'. Problem installing fixture '/home/msoulier/work/mitel-msl-webproxy/ root/etc/e-smith/web/django/webproxy/../webproxy/main/fixtures/ initial_data.json': Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/django/core/management/commands/ loaddata.py", line 167, in handle for obj in objects: File "/usr/lib/pymodules/python2.6/django/core/serializers/json.py", line 38, in Deserializer for obj in PythonDeserializer(simplejson.load(stream), **options): File "/usr/lib/pymodules/python2.6/django/core/serializers/ python.py", line 85, in Deserializer data = {Model._meta.pk.attname : Model._meta.pk.to_python(d["pk"])} File "/usr/lib/pymodules/python2.6/django/db/models/fields/ __init__.py", line 471, in to_python raise exceptions.ValidationError(self.error_messages['invalid']) ValidationError: [u'This value must be an integer.'] Huh? I have no integers. Curious, I changed the false to a for the boolean field, and it works. ?? I use false in other places for boolean fields without issue, why does it matter here? 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.