aniketmandle-sopho / techboard

Website for techboard iitg
1 stars 1 forks source link

Fields in AchievementsIndexPage not rendered in template #19

Closed krishraghuram closed 6 years ago

krishraghuram commented 6 years ago

This is not an issue - but more of a question.

In AchievementsIndexPage,

what are the following fields for?

Please let me know their purpose.

    author = models.CharField(max_length=255, blank=True)

    carousel = StreamField(
        [
            ('image', ImageChooserBlock()),
            ('quotation', StructBlock(
                [
                    ('text', TextBlock()),
                    ('author', TextBlock()),
                ])
            ),
            ('video', EmbedBlock()),
        ],
        blank=True)

    content_panels = Page.content_panels + [
        FieldPanel('intro', classname="full"),
        FieldPanel('author'),
        StreamFieldPanel('carousel'),
    ]