'Posting a new detail with no related objects
should require one query to save the object'

def test_ok_not_null_field_included(self):

    company = Company.objects.create()
    resource = api.canonical_resource_for('product')
    request = MockRequest()
    body = json.dumps({'producer': {'pk': company.pk}})
    request.set_body(body)
    resp = resource.post_list(request)
    self.assertEqual(resp.status_code, 201)
