Skip to content

Commit 9b60339

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent bba4b41 commit 9b60339

File tree

13 files changed

+13
-0
lines changed

13 files changed

+13
-0
lines changed

example/example/wsgi.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
framework.
1414
1515
"""
16+
1617
import os
1718

1819
# This application object is used by any WSGI server configured to use this

example/pexp/management/commands/p2cmd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
This module is a scratchpad for general development, testing & debugging
33
Well, even more so than pcmd.py. You best ignore p2cmd.py.
44
"""
5+
56
import sys
67
import time
78
from pprint import pprint

polymorphic/admin/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
The admin consists of a parent admin (which shows in the admin with a list),
55
and a child admin (which is used internally to show the edit/delete dialog).
66
"""
7+
78
# Admins for the regular models
89
from .parentadmin import PolymorphicParentModelAdmin # noqa
910
from .childadmin import PolymorphicChildModelAdmin

polymorphic/admin/childadmin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
The child admin displays the change/delete view of the subclass model.
33
"""
4+
45
import inspect
56

67
from django.contrib import admin

polymorphic/admin/helpers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
This makes sure that admin fieldsets/layout settings are exported to the template.
55
"""
6+
67
import json
78

89
from django.contrib.admin.helpers import AdminField, InlineAdminForm, InlineAdminFormSet

polymorphic/admin/inlines.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
Each row in the inline can correspond with a different subclass.
55
"""
6+
67
from functools import partial
78

89
from django.conf import settings

polymorphic/admin/parentadmin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
The parent admin displays the list view of the base model.
33
"""
4+
45
from django.contrib import admin
56
from django.contrib.admin.helpers import AdminErrorList, AdminForm
67
from django.contrib.admin.templatetags.admin_urls import add_preserved_filters

polymorphic/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
PolymorphicModel Meta Class
33
"""
4+
45
import inspect
56
import os
67
import sys

polymorphic/contrib/extra_views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
This package provides classes that support both options for polymorphic formsets.
66
"""
7+
78
import extra_views
89
from django.core.exceptions import ImproperlyConfigured
910

polymorphic/formsets/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
that describes how to display and construct the child.
99
It's parameters are very similar to the parent's factory method.
1010
"""
11+
1112
from .generic import ( # Can import generic here, as polymorphic already depends on the 'contenttypes' app.
1213
BaseGenericPolymorphicInlineFormSet,
1314
GenericPolymorphicFormSetChild,

0 commit comments

Comments
 (0)