On Feb 2, 8:07 am, Russell Keith-Magee <freakboy3...@gmail.com> wrote:
> It is possible you've found a bug, but in order to verify that, we
> need a minimal example that reproduces the problem - that is, the
> simplest possible model and fixture combination that fails on the
> second syncdb like you describe.

Thanks for the reply.

Here is a simple initial_data.json:-

[
    {
        "model": "posts.entry",
        "pk": 1,
        "fields": {
            "content": "This is the content"
        }
    }
]


And here is my models.py:-

from django.db import models

class Entry(models.Model):
    content = models.CharField(max_length=250)
    pub_date = models.DateTimeField(auto_now_add=True, editable=False)


First time syncdb is run, the fixture is correctly loaded, subsequent
runs result in the aforementioned error. Tested on Django 1.1.1 and
1.2alpha.

Thanks,
Andrew

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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