autoflake: remove unused imports and statements

This commit is contained in:
Diederik van der Boor
2016-12-19 11:12:40 +01:00
parent 1d13b4f3c5
commit 3170ea95c2
4 changed files with 1 additions and 6 deletions
-2
View File
@@ -8,13 +8,11 @@ from django.core.urlresolvers import resolve
from django.utils import six
from django.utils.translation import ugettext_lazy as _
from .helpers import PolymorphicInlineSupportMixin
from ..admin import PolymorphicParentModelAdmin
class ParentAdminNotRegistered(RuntimeError):
"The admin site for the model is not registered."
pass
class PolymorphicChildModelAdmin(admin.ModelAdmin):
-2
View File
@@ -34,12 +34,10 @@ if sys.version_info[0] >= 3:
class RegistrationClosed(RuntimeError):
"The admin model can't be registered anymore at this point."
pass
class ChildAdminNotRegistered(RuntimeError):
"The admin site for the model is not registered."
pass
class PolymorphicParentModelAdmin(admin.ModelAdmin):