Skip to content

Commit 3be86d5

Browse files
committed
Quick lint
1 parent 9e85722 commit 3be86d5

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

nested_admin/nested.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ def _djn_js_deps(self):
7676

7777

7878
class NestedInlineAdminFormsetMixin(NestedAdminMixin):
79-
8079
classes = None
8180

8281
def __init__(self, inline, *args, **kwargs):
@@ -240,7 +239,6 @@ class NestedInlineAdminFormset(
240239

241240

242241
class NestedModelAdminMixin(NestedAdminMixin):
243-
244242
inline_admin_formset_helper_cls = NestedInlineAdminFormset
245243

246244
@property
@@ -366,7 +364,7 @@ def _create_formsets(self, request, obj, change):
366364
form_obj = None
367365
is_empty_form = True
368366
InlineFormSet = inline.get_formset(request, form_obj)
369-
367+
370368
# Check if we're dealing with a polymorphic instance, and if
371369
# so, skip inlines for other child models
372370
if hasattr(form_obj, "get_real_instance"):
@@ -504,7 +502,6 @@ def render_change_form(self, request, context, obj=None, *args, **kwargs):
504502

505503

506504
class NestedInlineModelAdminMixin:
507-
508505
is_sortable = True
509506
sortable_field_name = None
510507

@@ -562,7 +559,6 @@ class NestedInlineModelAdmin(NestedInlineModelAdminMixin, InlineModelAdmin):
562559

563560

564561
class NestedStackedInlineMixin(NestedInlineModelAdminMixin):
565-
566562
if "grappelli" in settings.INSTALLED_APPS:
567563
template = "nesting/admin/inlines/grappelli_stacked.html"
568564
else:
@@ -574,7 +570,6 @@ class NestedStackedInline(NestedStackedInlineMixin, InlineModelAdmin):
574570

575571

576572
class NestedTabularInlineMixin(NestedInlineModelAdminMixin):
577-
578573
if "grappelli" in settings.INSTALLED_APPS:
579574
template = "nesting/admin/inlines/grappelli_tabular.html"
580575
fieldset_template = "nesting/admin/includes/grappelli_inline_tabular.html"
@@ -587,7 +582,6 @@ class NestedTabularInline(NestedTabularInlineMixin, InlineModelAdmin):
587582

588583

589584
class NestedGenericInlineModelAdminMixin(NestedInlineModelAdminMixin):
590-
591585
formset = NestedBaseGenericInlineFormSet
592586

593587

@@ -598,7 +592,6 @@ class NestedGenericInlineModelAdmin(
598592

599593

600594
class NestedGenericStackedInlineMixin(NestedGenericInlineModelAdminMixin):
601-
602595
if "grappelli" in settings.INSTALLED_APPS:
603596
template = "nesting/admin/inlines/grappelli_stacked.html"
604597
else:
@@ -612,7 +605,6 @@ class NestedGenericStackedInline(
612605

613606

614607
class NestedGenericTabularInlineMixin(NestedGenericInlineModelAdminMixin):
615-
616608
if "grappelli" in settings.INSTALLED_APPS:
617609
template = "nesting/admin/inlines/grappelli_tabular.html"
618610
fieldset_template = "nesting/admin/includes/grappelli_inline_tabular.html"

0 commit comments

Comments
 (0)