Fixed 21799 - Modified ignorenonexistent loaddata to ignore models #2335

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
2 participants
@esauro
Contributor

esauro commented Feb 21, 2014

No description provided.

django/core/serializers/python.py
- Model = _get_model(d["model"])
+ try:
+ Model = _get_model(d["model"])
+ except base.DeserializationError, e:

This comment has been minimized.

Show comment Hide comment
@timgraham

timgraham Mar 2, 2014

Member

this would need to be as e for Python 3 compatibility, but I believe you can just raise in the except block with e, right?

@timgraham

timgraham Mar 2, 2014

Member

this would need to be as e for Python 3 compatibility, but I believe you can just raise in the except block with e, right?

@timgraham

This comment has been minimized.

Show comment Hide comment
@timgraham

timgraham Mar 2, 2014

Member

This also requires a documentation update as well as a mention in the release notes.

Member

timgraham commented Mar 2, 2014

This also requires a documentation update as well as a mention in the release notes.

Made changes asked in review by timo
- Modified for Python 3 compatibility
- Added documentation.
@timgraham

This comment has been minimized.

Show comment Hide comment
@timgraham

timgraham May 18, 2014

Member

merged in ec9043a, thanks.

Member

timgraham commented May 18, 2014

merged in ec9043a, thanks.

@timgraham timgraham closed this May 18, 2014

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