﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
32348	"Deleting ""extra"" inlines in admin should not be possible."	Guan	Carlton Gibson	"[https://docs.djangoproject.com/en/3.1/intro/tutorial07/#writing-your-first-django-app-part-7 writing-your-first-django-app-part-7]

There is a description: **Note that you can’t remove the original three slots. ** 

But I find that ''the original three slots''** is able to** be removed in Django 3.1.5. The code is as follows:

{{{
# polls.models.py

class Question(models.Model):
    question_text = models.CharField(max_length=200)
    pub_date = models.DateTimeField(verbose_name=""date published"")

    def __str__(self):
        return self.question_text

    def was_published_recently(self):
        now = timezone.now()
        return now >= self.pub_date >= now - datetime.timedelta(days=1)


class Choice(models.Model):
    question = models.ForeignKey(Question, on_delete=models.CASCADE)
    choice_text = models.CharField(max_length=200)
    votes = models.IntegerField(default=0)

    def __str__(self):
        return self.choice_text
}}}


{{{
# polls.admin.py

class ChoiceInline(admin.StackedInline):
    model = Choice
    extra = 3


class QuestionAdmin(admin.ModelAdmin):
    # fields = [""pub_date"", ""question_text""]
    fieldsets = [
        (None, {""fields"": [""question_text""]}),
        (""Date Information"", {""fields"": [""pub_date""]})
    ]
    inlines = [ChoiceInline]


admin.site.register(Question, QuestionAdmin)
}}}

The image is:
[[Image(Snipaste_2021-01-13_12-48-24.png)]]
"	Bug	closed	Documentation	3.1	Normal	fixed		Carlton Gibson	Ready for checkin	1	0	0	0	0	0
