Skip to content
Browse files

forgot to include self!

  • Loading branch information...
1 parent d1a7a7c commit c6287fe76b6806c6d1d8b30e1449047d43d0c133 @dhatch committed Jul 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 tastypie/fields.py
View
2 tastypie/fields.py
@@ -464,7 +464,7 @@ def get_related_resource(self, related_instance):
"""
related_resource = self.to_class()
- if contenttype_attribute:
+ if self.contenttype_attribute:
# we're using a dict for self.to. we also finally know the
# actual type of the related object
self._to_class = type(related_instance)

0 comments on commit c6287fe

Please sign in to comment.
Something went wrong with that request. Please try again.