@@ -76,7 +76,6 @@ def _djn_js_deps(self):
76
76
77
77
78
78
class NestedInlineAdminFormsetMixin (NestedAdminMixin ):
79
-
80
79
classes = None
81
80
82
81
def __init__ (self , inline , * args , ** kwargs ):
@@ -240,7 +239,6 @@ class NestedInlineAdminFormset(
240
239
241
240
242
241
class NestedModelAdminMixin (NestedAdminMixin ):
243
-
244
242
inline_admin_formset_helper_cls = NestedInlineAdminFormset
245
243
246
244
@property
@@ -366,7 +364,7 @@ def _create_formsets(self, request, obj, change):
366
364
form_obj = None
367
365
is_empty_form = True
368
366
InlineFormSet = inline .get_formset (request , form_obj )
369
-
367
+
370
368
# Check if we're dealing with a polymorphic instance, and if
371
369
# so, skip inlines for other child models
372
370
if hasattr (form_obj , "get_real_instance" ):
@@ -504,7 +502,6 @@ def render_change_form(self, request, context, obj=None, *args, **kwargs):
504
502
505
503
506
504
class NestedInlineModelAdminMixin :
507
-
508
505
is_sortable = True
509
506
sortable_field_name = None
510
507
@@ -562,7 +559,6 @@ class NestedInlineModelAdmin(NestedInlineModelAdminMixin, InlineModelAdmin):
562
559
563
560
564
561
class NestedStackedInlineMixin (NestedInlineModelAdminMixin ):
565
-
566
562
if "grappelli" in settings .INSTALLED_APPS :
567
563
template = "nesting/admin/inlines/grappelli_stacked.html"
568
564
else :
@@ -574,7 +570,6 @@ class NestedStackedInline(NestedStackedInlineMixin, InlineModelAdmin):
574
570
575
571
576
572
class NestedTabularInlineMixin (NestedInlineModelAdminMixin ):
577
-
578
573
if "grappelli" in settings .INSTALLED_APPS :
579
574
template = "nesting/admin/inlines/grappelli_tabular.html"
580
575
fieldset_template = "nesting/admin/includes/grappelli_inline_tabular.html"
@@ -587,7 +582,6 @@ class NestedTabularInline(NestedTabularInlineMixin, InlineModelAdmin):
587
582
588
583
589
584
class NestedGenericInlineModelAdminMixin (NestedInlineModelAdminMixin ):
590
-
591
585
formset = NestedBaseGenericInlineFormSet
592
586
593
587
@@ -598,7 +592,6 @@ class NestedGenericInlineModelAdmin(
598
592
599
593
600
594
class NestedGenericStackedInlineMixin (NestedGenericInlineModelAdminMixin ):
601
-
602
595
if "grappelli" in settings .INSTALLED_APPS :
603
596
template = "nesting/admin/inlines/grappelli_stacked.html"
604
597
else :
@@ -612,7 +605,6 @@ class NestedGenericStackedInline(
612
605
613
606
614
607
class NestedGenericTabularInlineMixin (NestedGenericInlineModelAdminMixin ):
615
-
616
608
if "grappelli" in settings .INSTALLED_APPS :
617
609
template = "nesting/admin/inlines/grappelli_tabular.html"
618
610
fieldset_template = "nesting/admin/includes/grappelli_inline_tabular.html"
0 commit comments