Skip to content

Commit

Permalink
Cleaned up a repr() hack that caused problems on Python3.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Mar 4, 2014
1 parent 53c5764 commit 20da67d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions django/contrib/admin/checks.py
Expand Up @@ -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

Expand Down

0 comments on commit 20da67d

Please sign in to comment.