Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed some 5-space indents that were introduced with multidb.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16549 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b8db443437ae4d24331bd33ab3a91037f0927b2d 1 parent 127b7fd
@alex alex authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/contenttypes/generic.py
View
4 django/contrib/contenttypes/generic.py
@@ -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!")
Please sign in to comment.
Something went wrong with that request. Please try again.