Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 624 Bytes

README.md

File metadata and controls

28 lines (16 loc) · 624 Bytes

This is timeline - an Opal plugin.

! Important Notice !

This plugin is no longer actively maintiained - as it depends on a version of django that is no longer supported by OPAL

Defining a timeline should be as simple as

from timeline.timelines import Timeline, TimelineElement from elcid.models import MicrobiologyInput

class SampleTimeline(Timeline):
    slug = "sample"

    elements = (
        TimelineElement(subrecord=MicrobiologyInput, group_by="when"),
    )

Then you can put them in a template with

{% load timelines %} {% timeline "sample" %}