forked from zorgz/django-tastypie
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CORE-25484 Merge changes from django-tastypie 0.12.2 (#11)
Merged commits from the original repo for v0.12.2 tag. Note: I am going to squash it because I want to keep fork history simpler and to be able to track our own changes. And because I hope that eventually we will get rid of this fork (or even tastypie itself) at all. If you need an actual history - well, sorry. Original commit messages: * Get user model and username field in a more lazy way User model will not be ready at import time Signed-off-by: Ilya Baryshev <baryshev@gmail.com> * Django 1.7: migrations We're keeping old migrations in south_migrations folder to be backwards-compatible with Django<1.7 and South>=1.0 * Django 1.7: Explicit fixtures in tests Using of initial_data in tests is problematic due to new app loading mechanism. Because initial_data fixtures is deprecated in favor of migrations, initial_data fixtures are renamed (to avoid confusion). They're explicitly specified in testcases. * Django 1.7: Lazy loading of User model in management command After app loading change, User model can no longer be referenced while app registry is not populated. This commit completes work in c7aa6c8 * Django 1.7: Fix ApiAccess __unicode__ for py3 * Django 1.7: Fix customuser tests Due to app loading changes app_label is no longer effective, so CustomUser model is redefined in tests. Fixture name is changed to avoid collision with contrib.auth fixture * Django 1.7: Update tox config Update Django and django-oauth-plus versions * Django 1.7: Minor testsuite fixes * RuntimeError in related_resource, due to model name conflict * ValueError when assigning to non-nullable field * Add explicit MIDDLEWARE_CLASSES to avoid checks framework warnings * Django 1.7: Fix PutListNestResouceValidationTestCase Attribute 'pk' is ignored, use 'id' instead. Due to non-monotonic autoincrement in sqlite prior 1.7 test was passing: both notes were deleted and created anew (pk were not taken into account, they just "fortunately" matched pks of newley created models). * Fix for issue django-tastypie#955 * Added test case for the fix * Removed incorrect import * Django 1.7: Update tox to latest Django release * Fixed test requirement for PyYAML. Thanks to AndrewGrossman for the report! * find resource name using rfind this fixes a bug where app name and resource name are the same. /projects/api/v1/projects/1/ should return projects/1/ not projects/api/v1/projects/1/ * make sure we throw exception if not found * add test * Added release notes for v0.12.0. * Bumped to 0.12.0! * Starting next dev cycle. * Enable syntax highlighting in README * Update current version in README.rst * Added 0.12.1 release notes. * Bumped to v0.12.1! (posthumously, since I tagged the wrong commit) * Starting the next dev cycle. * pep8 * add failing test for prefetch_related resources * update test * fix bug by invalidating prefetch cache * Update python3.rst simple change from "Tastpie" to "Tastypie". * Update serialization.rst fixed typo * Added my name to the AUTHORS file for the bug fix django-tastypie#955 * Django 1.8 compatibility * Small optimization of `extract_credentials` method Getting the header value for key `HTTP_AUTHORIZATION` only once for this method * Django 1.8: requires SITE_ID in settings * Django 1.8: update tarball location for 1.8 * Django 1.8: fixed core tests * Django 1.8: fixed basic tests * Django 1.8: fix for minor change in unset attributes of model objects * Django 1.8: update travis config for one more env, disallow 1.7 and 1.8 failures * Django 1.8: fixed related_resource tests. I have no idea what I am doing. * Django 1.8: whoops, no such env as 1.8+py2.6 * Django 1.8: removing not-implemented complex tests which break due to importing deleted comments app * Last traces of complex.tests * PUT response code correction See commit for details * Update PUT response codes See commit for details: django-tastypie@abc0bef * Update to django 1.8b1 * Changed html_theme to "classic" (from "default") to prevent Sphinx build error * Update testenvs to use official Django 1.8 release * Replace with python importlib Replace django.utils.importlib with python importlib "Warning: django.utils.importlib will be removed in Django 1.9" * Replace with python importlib Fix Warning: django.utils.importlib will be removed in Django 1.9. * Pinning version of mock as 1.1.0 and later no longer support python 2.6 Co-authored-by: Stefan Wehrmeyer <mail@stefanwehrmeyer.com> Co-authored-by: Ilya Baryshev <baryshev@gmail.com> Co-authored-by: harishn_knowlarity <harish.srinivas@eng.knowlarity.com> Co-authored-by: harishn_knowlarity <me.harishn@gmail.com> Co-authored-by: Daniel Lindsley <daniel@toastdriven.com> Co-authored-by: Sam Kuehn <samkuehn@gmail.com> Co-authored-by: Corey Farwell <coreyf@rwell.org> Co-authored-by: Chris Adams <chris@improbable.org> Co-authored-by: Jann Kleen <jann.kleen@freshx.de> Co-authored-by: Eric Theise <erictheise@gmail.com> Co-authored-by: Matthew Crowson <matthew.d.crowson@gmail.com> Co-authored-by: George Dorn <georgedorn@gmail.com> Co-authored-by: Willem Bult <willem.bult@gmail.com> Co-authored-by: Chewey <prosto-chewey@users.noreply.github.com> Co-authored-by: Seán Hayes <gasphynx@gmail.com> Co-authored-by: Simon Kelly <skelly@dimagi.com> Co-authored-by: Max Naude <maxnaude@gmail.com> Co-authored-by: Renjith Thankachan <mail3renjith@gmail.com> Co-authored-by: Sam Thompson <sam.thompson@buildingenergy.com>
- Loading branch information
1 parent
0a0ae1c
commit 8fb26f4
Showing
60 changed files
with
547 additions
and
622 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
v0.12.0 | ||
======= | ||
|
||
:date: 2014-09-11 | ||
|
||
This release adds official support for both Django 1.7, as well as | ||
several bugfixes. | ||
|
||
.. warning:: | ||
|
||
If you were previously relying on importing the ``User`` model from | ||
``tastypie.compat``, this import will no longer work correctly. This was | ||
removed due to the way app-loading works in Django 1.7 & no great solution | ||
for dodging this issue exists. | ||
|
||
If you were using either of:: | ||
|
||
from tastypie.compat import User | ||
from tastypie.compat import username_field | ||
|
||
Please update your code as follows:: | ||
|
||
from tastypie.compat import get_user_model | ||
from tastypie.compat import get_username_field | ||
|
||
|
||
Bugfixes | ||
-------- | ||
|
||
* Drastic reworking of the test suite. (SHA: 95f57f7) | ||
* Fixed Travis to run Python 3.4 tests. (SHA: 7af528c) | ||
* Fixed a bug where URLs would be incorrectly handled if the ``api_name`` & | ||
``resource_name`` were the same. (SHA: fd55aa3) | ||
* Fixed a test requirement for PyYAML. (SHA: b4f6531) | ||
* Added support for Django 1.7. (SHA: 7881bb6) | ||
* Documentation updates: | ||
|
||
* Fixed header in ``tools.rst``. (SHA: f8af772) | ||
* Fixed header in ``resources.rst``. (SHA: 9508cbf) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
v0.12.1 | ||
======= | ||
|
||
:date: 2014-10-22 | ||
|
||
This release is a small bugfix release, specifically to remove accidentally | ||
added files in the Wheel release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
v0.12.3-dev | ||
=========== | ||
|
||
:date: 2020-05-05 | ||
|
||
Fork is upgraded to v0.12.2 from mainstream. | ||
|
||
Custom fixes, that are still included: | ||
* Deepcopy performance issue fix: https://github.com/RevelSystems/django-tastypie/commit/ece89b244950608723207dd48837a1547dd45cd2 | ||
* Fix for invalid decimal strings: https://github.com/RevelSystems/django-tastypie/pull/1 | ||
* `importlib` import fix: https://github.com/RevelSystems/django-tastypie/pull/4 | ||
* Fix for `django.core.cache.get_cache` import: https://github.com/RevelSystems/django-tastypie/pull/5 | ||
* Copy of `django.utils.http.same_origin`: https://github.com/RevelSystems/django-tastypie/pull/6 | ||
* Port of fix for `skip_errors=True` in related fields: https://github.com/RevelSystems/django-tastypie/pull/8 | ||
* Fix usages of the deprecated `django.conf.urls.patterns`: https://github.com/RevelSystems/django-tastypie/pull/9 and https://github.com/RevelSystems/django-tastypie/pull/10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.