Permalink
Browse files

Fixed a busted variable reference. Thanks to robhudson for the report!

  • Loading branch information...
1 parent 252f4d3 commit 23c18acb7cf4fa14d7089e379754301af7cabec7 @toastdriven toastdriven committed Aug 18, 2011
Showing with 175 additions and 163 deletions.
  1. +2 −0 tastypie/fields.py
  2. +173 −163 tests/core/tests/fields.py
View
@@ -654,6 +654,8 @@ def dehydrate(self, bundle):
return []
+ the_m2ms = None
+
if isinstance(self.attribute, basestring):
the_m2ms = getattr(bundle.obj, self.attribute)
elif callable(self.attribute):
Oops, something went wrong.

0 comments on commit 23c18ac

Please sign in to comment.