Skip to content
Permalink
Branch: master
Commits on Sep 23, 2019
  1. Fix typo in Resources doc (#1598)

    nikolas authored and georgedorn committed Sep 23, 2019
Commits on Jun 3, 2019
  1. Django 2.2 tests (#1588)

    georgedorn committed Jun 3, 2019
    * Update test matrix to cover supported django versions
    
    * Fix docs on 2.7
    
    Get debug info on spatialite packages
    
    * Add migrations for core so they work with postgres
    
    * Prep work for Django 3.0; at least produce the right errors
    
    * Clean up travis config
Commits on Apr 29, 2019
  1. Fix CI badge to only care about master branch

    georgedorn committed Apr 29, 2019
Commits on Apr 8, 2019
  1. Merge branch 'andrekeller-related_field_validation'

    georgedorn committed Apr 8, 2019
  2. Align with PEP-8.

    andrekeller authored and georgedorn committed Apr 15, 2016
  3. Update validation (in particular the form_args function) to allow FK …

    chander authored and georgedorn committed Apr 29, 2013
    …relationships to work when using CleanedDataFormValidation with django ORM models that have Related fields
    
    Formerly, when an insert or update operation occurs on a model that uses a FK relationship field in the form, TastyPie would pass into the form validation the URI that was provided in bundle.data.  Unfortunately, Django really wants a PK reference (the output of model_to_dict, in this case) and would fail in such cases.  This fix detects those related fields in the target model (bundle.obj) and leaves the references to the related table intact, but still applies bundle values for all other fields (some of which might not be in the model, but might be required for the form.)
  4. Update validation (in particular the form_args function) to allow FK …

    chander authored and georgedorn committed Apr 8, 2019
    …relationships to work when using CleanedDataFormValidation with django ORM models that have Related fields (#923)
    
    Convert url relationships to pks in form validation.
  5. Updating alter_list_data_to_serialize resource doc (fixing rst) (#1550)

    georgedorn committed Apr 8, 2019
    * Updating alter_list_data_to_serialize resource doc
    
    Added example to illustrate usage and demonstrate where this can be useful.
    
    * Fix rst formatting
  6. lookup_kwargs_with_identifiers: handle detail_uri_name specially (#1578)

    rkojedzinszky authored and georgedorn committed Apr 8, 2019
    Fixes #1576
  7. Fix invalid tuple modification and other minor docs fixes. (#1574)

    toanant authored and georgedorn committed Apr 8, 2019
    Signed-off-by: Abhishek Kumar Singh <abhishek4bhopati@gmail.com>
  8. Teachoo uses Tastypie for its API (#1587)

    davneet4u authored and georgedorn committed Apr 8, 2019
Commits on Mar 1, 2019
  1. Fix regression with FK fields with callable attributes.

    georgedorn committed Mar 1, 2019
  2. Ignore flake8 for tests dir (#1584)

    georgedorn committed Mar 1, 2019
    * Fix flake8 problems
Commits on Sep 4, 2018
  1. Fix missing release notes

    georgedorn committed Sep 4, 2018
  2. Bump version to 0.14.2

    georgedorn committed Sep 4, 2018
  3. Update docs for v0.14.2 release

    georgedorn committed Sep 4, 2018
Commits on Aug 28, 2018
  1. Django 2.1 compat (#1562)

    georgedorn committed Aug 28, 2018
    * Django 2.1: Set up test matrix
    
    * Django 2.1: fix missing QUERY_TERMS (#1564)
    
    * Isolate failing assertion in separate test
    
    * query_terms: try interrogating the django field directly
    
    * Replace class_lookups with get_lookups() which is a more complete list
    
    * Leftover debug
    
    * Django 2.1: 'Fix' for upstream regression regarding non-string query params in tests (#1565)
    
    * Django 2.1: explicitly set blank=True on BooleanFields due to upstream regression (#1567)
    
    Failing tests unrelated to this PR; those will need another compat shim (and pep8).
    
    * Fix/django2.1 cleanups (#1568)
    
    * Fix pep8
    
    * Remove tests for Django 1.8
    
    * More 1.8 removal, stop installing django 2 on python 2
    
    * More dependency fixes
    
    * Explicitly run doctests for validate_jsonp module, to bump coverage
    
    * flake8
Commits on Aug 27, 2018
  1. Fix pypi downloads badge (#1569)

    joealcorn authored and georgedorn committed Aug 27, 2018
Commits on Jun 13, 2018
  1. Fix typo (#1556)

    pengwk authored and georgedorn committed Jun 13, 2018
    mke sure -> make sure
Commits on Apr 9, 2018
  1. Bump version number to release to PyPI

    georgedorn committed Apr 9, 2018
  2. Fix for ToManyField.dehydrate with a null value regression. (#1544)

    georgedorn committed Apr 9, 2018
    * Fix for #1537 with test
    
    * Add test ensuring a bad attribute name raises an exception
  3. Updated hyperlinks for biplist (#1533)

    AndrewGrossman authored and georgedorn committed Apr 9, 2018
  4. Tests/test num queries get multiple (#1549)

    georgedorn committed Apr 9, 2018
    * Unit test to ensure number of queries for get_multiple remains one
    
    * Prefer assertNumQueries as number is always fixed
  5. Get multiple in one query (#1548)

    jorgeecardona authored and georgedorn committed Apr 9, 2018
    * Use the method obj_get_list if implemented in get_multiple.
    
    * Move code outside the try/except block
    
    * Filter the queryset that return obj_get_list instead that uses the apply_filters mechanism, because it deletes the pk__in field
    
    * Add my name in AUTHORS
    
    * In get_multiple, return the objects in the same order as the pk are sent
    
    * Add test for get_multiple without a queryset
    
    * Remove whitespaces and blank lines
Commits on Mar 19, 2018
  1. Django compatibility note update

    georgedorn committed Mar 19, 2018
  2. Set up CI tests for Django 2.0 (#1542)

    georgedorn committed Mar 19, 2018
    * Set up CI tests for Django 2.0
    
    * Run tests in python 3.5 and 3.6; tweaks for django dev version
    
    * More test combos
Commits on Feb 5, 2018
  1. Reorder blank, null checks in full_hydrate - #1489 (#1539)

    pawelswiecki authored and georgedorn committed Feb 5, 2018
    This is a copy of original commit by @aaronelliotross. Resubmitting to make it
    easier to pick up (old one did not pass flake8 tests and stayed hanging).
    
    Original commit:
    aaronelliotross@bd46c5a
    
    Original pull request:
    #1494.
  2. Deal with bare except statements. See #1540. (#1541)

    pawelswiecki authored and georgedorn committed Feb 5, 2018
    Notes about the changes:
    
    * `tastypie.authentication.Authentication.get_authorization_data` change
    
        This is about re-raising the ValueError with a custom message in case of
        .split() returning one item (instead of two). Made it explicit.
    
    * `tastypie.resources.BaseModelResource.obj_update` change
    
        I left this as is, because pinpointing **all the possible exceptions** that
        may be raised during data hydration is error-prone. "# flake8: noqa"
        prevents flake8 error.
    
    * `tests.core.tests.resources.ResourceTestCase.test_auth_check` change
    
        BasicResource.is_authenticated() (without a custom authentication defined
        in "meta") can only raise ImmediateHttpResponse exception. Catch it
        explicitly.
    
    * `tests.core.tests.resources.ModelResourceTestCase.test_is_valid` change
    
        Current implementation of Resource.is_valid() won't -- in case of errors --
        raise an exception, but will return False. Changed the test to check for
        that.
Commits on Sep 11, 2017
  1. Fix docstring for put_list (#1528)

    georgedorn committed Sep 11, 2017
  2. Update geodjango.rst (#1521)

    mikaeilorfanian authored and georgedorn committed Sep 11, 2017
    Add missing import for `ALL`.
Commits on Sep 4, 2017
  1. Add validate_jsonp doctests to core suite (#1527)

    georgedorn committed Sep 4, 2017
  2. Abstract Resources (#1519)

    georgedorn committed Sep 4, 2017
    * Add explicit error when ModelResource lacks object_class and queryset
    
    * Start of implementation of abstract base ModelResources
    
    * Fallback on deleting resource_uri for abstract classes
    
    * flake8
    
    * Added tests of subclassing abstract resources
    
    * Add docs for abstract Resource
    
    * Minor clarification
Commits on Aug 7, 2017
  1. Fix Advanced Filtering example; test (#1525)

    georgedorn committed Aug 7, 2017
    * Fix Advanced Filtering example; test
    
    * flake8
Commits on Jul 31, 2017
  1. Alter length of URL field in ApiAccess model (#1522)

    georgedorn committed Jul 31, 2017
    * Alter length of URL field in ApiAccess model
    
    * Added no-op test for ApiAccess.url length
Older
You can’t perform that action at this time.