The mg.orga.roll application

Requires The mg.core.element application.

Django models

mg.orga.roll Application models

Requires The mg.core.element application.

digraph roll {
element [shape="box", label="Element\nmg.core.element"];
roll [shape="box", label="Roll"];

roll -> element [headlabel = "*", taillabel = "1"];
}

The Roll model

class mg.orga.roll.models.Roll

This contains a bunch of Element in a named container.

name

Name of the roll

slug

Slug, for URL generation

As other conainers for Element objects, Roll also implements the ElementContainer protocol.

Templatetags

mg_roll

show_roll_info

{% show_roll_info roll info_list %}

get_roll_next

Gets the next element in roll:

{% get_roll_next element as element_next %}

get_roll_prev

Gets the previous element in roll:

{% get_roll_prev element as element_prev %}