New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #9279 -- Added option to ignore data for fields that no longer exist #410

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
3 participants
@d1ffuz0r

d1ffuz0r commented Sep 30, 2012

Added option to ignore data for fields that no longer exist
to loaddata command. Added documentation how use it.

@charettes

View changes

docs/ref/django-admin.txt Outdated
@@ -289,6 +289,8 @@ Searches for and loads the contents of the named fixture into the database.
The :djadminopt:`--database` option can be used to specify the database
onto which the data will be loaded.
The ``--ignorenonexistent`` option can be used for ignore fields were removed from models and database.

This comment has been minimized.

@charettes

charettes Oct 1, 2012

Member

This should be under a versionadded 1.5 clause.

@charettes

View changes

docs/ref/django-admin.txt Outdated
If you changed the model and do not want generate fixture again, you can use flag ``--ignorenonexistent`` for ignore not existing fields in model::
django-admin.py loaddata foo/bar/mydata.json --ignorenonexistent

This comment has been minimized.

@charettes
@charettes

View changes

docs/topics/serialization.txt Outdated
If in model were removed some fields, for correct processing fixtures you can send the argument ``ignorenonexistent``::
serializers.deserialize("xml", data, ignorenonexistent=True)

This comment has been minimized.

@charettes

charettes Oct 1, 2012

Member

again.

@charettes

This comment has been minimized.

Member

charettes commented Oct 1, 2012

A note should also be added to the 1.5 release note.

Should be too late to get this in 1.5 since feature freeze is today but I would give this a try since it's a simple patch.

d1ffuz0r
Fixed #9279 -- Added option to ignore data for fields that no longer …
…exist

Added option to ignore data for fields that no longer exist
to loaddata command. Added documentation how use it.
Thanks Simon Charette for review.
@d1ffuz0r

This comment has been minimized.

d1ffuz0r commented Oct 1, 2012

@charettes done.

@ptone

This comment has been minimized.

Member

ptone commented Oct 1, 2012

fixed in e772368

@ptone ptone closed this Oct 1, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment