Tuesday, June 14, 2011

Re: Integrity Error with generic relation using ContentType

Yes, it is. Any reason why you want the content-types to be part of
your fixtures? Why not let django build that up by itself?

On Jun 14, 1:21 am, Amit Sethi <amit.pureene...@gmail.com> wrote:
> On Tue, Jun 14, 2011 at 1:41 AM, christian.posta<christian.po...@gmail.com> wrote:
> > Are you using your own fixtures (like initial_data.json)?
> > Is it possible that in your initial_data.json ( or whatever fixture
> > you're using) that you're including entries into the content_types
>
> [..]
>
> Well i do have entries of the kind this :
>  {
>         "pk": 47,
>         "model": "contenttypes.contenttype",
>         "fields": {
>             "model": "user",
>             "name": "user",
>             "app_label": "auth"
>         }
>     },
>
> Are these what you are referring to ..

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate