Skip to content
Browse files

Cleaned up a repr() hack that caused problems on Python3.

  • Loading branch information...
1 parent 53c5764 commit 20da67d325190ec131ae5da2ae415335ecbeae24 @freakboy3742 freakboy3742 committed
Showing with 1 addition and 4 deletions.
  1. +1 −4 django/contrib/admin/
5 django/contrib/admin/
@@ -534,10 +534,7 @@ def _check_inlines(self, cls, model):
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

0 comments on commit 20da67d

Please sign in to comment.
Something went wrong with that request. Please try again.