Skip to content

Commit

Permalink
Fixed some 5-space indents that were introduced with multidb.
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16549 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
alex committed Jul 19, 2011
1 parent 127b7fd commit b8db443
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/contrib/contenttypes/generic.py
Expand Up @@ -52,9 +52,9 @@ def get_content_type(self, obj=None, id=None, using=None):
# using this model
ContentType = get_model("contenttypes", "contenttype")
if obj:
return ContentType.objects.db_manager(obj._state.db).get_for_model(obj)
return ContentType.objects.db_manager(obj._state.db).get_for_model(obj)
elif id:
return ContentType.objects.db_manager(using).get_for_id(id)
return ContentType.objects.db_manager(using).get_for_id(id)
else:
# This should never happen. I love comments like this, don't you?
raise Exception("Impossible arguments to GFK.get_content_type!")
Expand Down

0 comments on commit b8db443

Please sign in to comment.