mirror of
https://github.com/django/django.git
synced 2024-12-28 03:55:50 +00:00
Fixed #21084 -- Used proxy model's content type for admin log entries.
(the previous commit included only the test)
This commit is contained in:
parent
7a7f6fccae
commit
3cba90f22a
@ -60,7 +60,7 @@ def get_content_type_for_model(obj):
|
|||||||
# Since this module gets imported in the application's root package,
|
# Since this module gets imported in the application's root package,
|
||||||
# it cannot import models from other applications at the module level.
|
# it cannot import models from other applications at the module level.
|
||||||
from django.contrib.contenttypes.models import ContentType
|
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):
|
def get_ul_class(radio_style):
|
||||||
|
Loading…
Reference in New Issue
Block a user