Permalink
Browse files

fixed some comments

  • Loading branch information...
1 parent 0b84b7e commit 2c2bdc62544e6c04c637b4d6196e9fcb5a119f02 @dhatch committed Jul 31, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 tastypie/fields.py
View
4 tastypie/fields.py
@@ -440,7 +440,7 @@ def __init__(self, to, attribute, related_name=None, default=NOT_PROVIDED, null=
if self.contenttype_field and not isinstance(self.to, dict):
raise ValueError(
"to argument must be a dictionary " +
- "when used with contenttype_attribute")
+ "when used with contenttype_field")
if self.contenttype_field and not issubclass(type(self.contenttype_field), ToOneField):
raise ValueError(
@@ -647,7 +647,7 @@ def hydrate(self, bundle):
if related_content_type:
resource_type = self.to[related_content_type.obj.model_class()]
else:
- # check to see if the obj know's it's content type
+ # check to see if the obj knows its content type
try:
if hasattr(bundle.obj, self.contenttype_field.attribute):
resource_type = getattr(bundle.obj, self.contenttype_field.attribute)

0 comments on commit 2c2bdc6

Please sign in to comment.