From 150247abe7d83057b5a0b35f8922096a0ba20aaf Mon Sep 17 00:00:00 2001 From: palewire Date: Wed, 20 Mar 2013 11:25:56 -0700 Subject: [PATCH] Hack at a tastyhack that doesn't work with the latest version of tastypie. Hoping to fix #33 --- boundaryservice/tastyhacks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boundaryservice/tastyhacks.py b/boundaryservice/tastyhacks.py index 41e5813..09fe5e0 100644 --- a/boundaryservice/tastyhacks.py +++ b/boundaryservice/tastyhacks.py @@ -86,6 +86,8 @@ def get_resource_uri(self, bundle_or_obj): if isinstance(bundle_or_obj, Bundle): kwargs['slug'] = bundle_or_obj.obj.slug + elif bundle_or_obj is None: + kwargs['slug'] = None else: kwargs['slug'] = bundle_or_obj.slug