diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2014-03-04 09:50:09 +0800 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2014-03-04 09:50:09 +0800 |
| commit | 20da67d325190ec131ae5da2ae415335ecbeae24 (patch) | |
| tree | 0f3774712db7a71dfa9086acc4c5b52d50c496c2 | |
| parent | 53c576452e2e8feef857cd67a5c17f9159d95eb6 (diff) | |
Cleaned up a repr() hack that caused problems on Python3.
| -rw-r--r-- | django/contrib/admin/checks.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/django/contrib/admin/checks.py b/django/contrib/admin/checks.py index 8eafd86754..badc1514cd 100644 --- a/django/contrib/admin/checks.py +++ b/django/contrib/admin/checks.py @@ -534,10 +534,7 @@ class ModelAdminChecks(BaseModelAdminChecks): def _check_inlines_item(self, cls, model, inline, label): """ Check one inline model admin. """ - # HACK: This is a nasty hack, but because inlines use the - # RenameBaseModelAdminMethod metaclass, it's almost impossible - # to get the *actual* class name for output purposes. - inline_label = repr(inline)[8:-2] + inline_label = '.'.join([inline.__module__, inline.__name__]) from django.contrib.admin.options import BaseModelAdmin |
