In my Django admin, I want to disable the below-shown paragraph. Please help me out. I am new to changing djano admin.
Link to Image
Here is my current admin.py
class ImageInlineAdmin(admin.StackedInline):
model = Image
max_num = 1
class BlogAdmin(admin.ModelAdmin):
inlines = [ParagraphInlineAdmin, ImageInlineAdmin]
list_display = ['heading','id']
Here are my models
class Container(models.Model):
heading = models.CharField(max_length=100, blank=True, default="")
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
def __str__(self) -> str:
return self.heading
class Paragraph(models.Model):
content = RichTextUploadingField()
container = models.ForeignKey(
Container, on_delete=models.CASCADE, blank=True)
def __str__(self) -> str:
return self.content
P.S I am using Django CKeditor