Tuesday, February 1, 2011

Re: contenttypes and dumpdata options

Hi JD,

Yes, using natural keys will allow you to serialize models that use
the contenttypes framework. You can read about this feature here:

http://docs.djangoproject.com/en/dev/topics/serialization/#natural-keys

Preston


On Jan 29, 1:59 pm, jd <kkswi...@gmail.com> wrote:
> hello,
> What's the current recommended way to deal with contenttypes when you
> move a db using dumpdata? I know about excluding it, but I read
> something about using the ---natural option with the dump command
> would work as well. Does this work when including contenttypes in the
> dump? Which is the preferred method? thanks.

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

No comments:

Post a Comment