Skip to content
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

POST/PUT deeply nested data #382

Closed

Commits on Feb 20, 2012

  1. Copy the full SHA
    e94fd9b View commit details
    Browse the repository at this point in the history
  2. Failing test for django-tastypie#307

    Let's say we have 3 resources, A, B, and C, where A has a ToMany to B and B has a ToMany to C.
    
    When creating or updating on A where the list of Bs is full (not a list of resource_uris), the list of Cs is passed to the ORM as a filter, which triggers a TypeError.
    bohde committed Feb 20, 2012
    Copy the full SHA
    b5f1afd View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    9cd75e5 View commit details
    Browse the repository at this point in the history
  4. Catch the type error, and proceed to pk lookup.

    Unfortunately, this causes a Django "DoesNotExist" in "./../tastypie/fields.py", line 56
    bohde committed Feb 20, 2012
    Copy the full SHA
    bdae31e View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    b6512bd View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    a3cc0a3 View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2012

  1. I shouldn't copy-paste code.

    bohde committed Feb 21, 2012
    Copy the full SHA
    4de115a View commit details
    Browse the repository at this point in the history
  2. Get the tests passing.

    bohde committed Feb 21, 2012
    Copy the full SHA
    9019a32 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2012

  1. Copy the full SHA
    27740de View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2012

  1. Copy the full SHA
    82cdb7b View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    88c897d View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2012

  1. Refactor nested related resource tests

    Split out each combination of related resource into individual tests.
    bohde committed Feb 27, 2012
    Copy the full SHA
    47e9a7e View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    ff282c6 View commit details
    Browse the repository at this point in the history