A bit leaky, but don't save related fields that aren't dict-alike.
Tests related resource query #. from @joshbohde.

Manually added in @joshbohde's 8575c3ff41618925b9b9669a2e487bddabc6dd23 and 7b125befe644c8c60559a1378752e0d1ba3091e5 because merge failed.
Only save m2m fields if they're provided inline.

This is the same logic as a32045760ce7839dd0e7289d33bbd7d91f901344 but applied to m2m fields.
Test for m2m-save reduction.
Check obj._state.adding. All tests now pass.
Correct override_urls check in Api (closes #692)

This applies the same change which #516 made to Resource to only issue
the deprecation warning when override_urls() actually returns something.

This also changes the logic in both locations to avoid calling
override_urls() more than once
Handle malformed HTTP Accept values

Some clients cause tastypie to return a 500 error because they send a request
with an HTTP Accept header which contains an invalid MIME type (e.g. any value
without a "/" other than "*", which mimeparse handles).

determine_format() now raises BadRequest any time mimeparse fails.
Resources now handle this by returning HTTP 400 immediately rather than
the normal error response
wrap_view: handle BadRequest exceptions gracefully
PEP-8: replace legacy has_key() with ``foo in bar``
Merge pull request #819 from acdha/692-correct-override_urls-warning

Correct override_urls check in Api (closes #692)
Merge pull request #519 from acdha/robust-format-negotiation

Altered ``determine_format`` to handle malformed HTTP Accept values.
Made the backward-incompatible doc a bit more readable & included SHAs.
Updated version in README
Added test to prove submitting DELETE w/ filters to list works.
Merge commit '2b13147715347d8239bbe73943be0eae65c8a43b'
https://github.com/toastdriven/django-tastypie/pull/594
Merging the above pull request which should resolve the problem of saving related fields that should not be saved.

Merge commit 'f6d6b2f39e2436b4ee0e28daaa33ac7cb65d3959'

Conflicts:
	tastypie/resources.py
	tests/related_resource/api/resources.py
	tests/related_resource/api/urls.py
	tests/related_resource/models.py
	tests/related_resource/tests.py