summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2011-07-19 17:19:32 +0000
committerAlex Gaynor <alex.gaynor@gmail.com>2011-07-19 17:19:32 +0000
commitb8db443437ae4d24331bd33ab3a91037f0927b2d (patch)
treed99b1c56553fa5c8f25bce32a1c8d15bb42924ae
parent127b7fdce8e89e5a8e349a7de817050ac5a64719 (diff)
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
-rw-r--r--django/contrib/contenttypes/generic.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/contenttypes/generic.py b/django/contrib/contenttypes/generic.py
index 389692d5b3..dc58f1f6f1 100644
--- a/django/contrib/contenttypes/generic.py
+++ b/django/contrib/contenttypes/generic.py
@@ -52,9 +52,9 @@ class GenericForeignKey(object):
# 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!")