Browse files

[1.7.x] Fixed #21084 -- Used proxy model's content type for admin log…

… entries.

(the previous commit included only the test)

Backport of 3cba90f from master
  • Loading branch information...
1 parent 5e74d6c commit 32c857908998503cd595311eebc9256d44f65803 @timgraham timgraham committed Apr 7, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/admin/
@@ -59,7 +59,7 @@ def get_content_type_for_model(obj):
# Since this module gets imported in the application's root package,
# it cannot import models from other applications at the module level.
from django.contrib.contenttypes.models import ContentType
- return ContentType.objects.get_for_model(obj)
+ return ContentType.objects.get_for_model(obj, for_concrete_model=False)
def get_ul_class(radio_style):

0 comments on commit 32c8579

Please sign in to comment.