Template Tags

Inclusion Tags

tom_targets.templatetags.targets_extras.recent_targets(context, limit=10)

Displays a list of the most recently created targets in the TOM up to the given limit, or 10 if not specified.


Displays the featured image for a target.


Displays the data of a target.


Widget displaying groups this target is in and controls for modifying group association for the given target.


Displays form and renders plot for visibility calculation. Using this templatetag to render a plot requires that the context of the parent view have values for start_time, end_time, and airmass.


Displays a plot showing on a map the locations of all sidereal targets in the TOM.


Displays Aladin skyview of the given target along with basic finder chart annotations including a compass and a scale bar. The resulting image is downloadable. This templatetag only works for sidereal targets.


tom_targets.templatetags.targets_extras.deg_to_sexigesimal(value, fmt)

Displays a degree coordinate value in sexigesimal, given a format of hms or dms.

tom_targets.templatetags.targets_extras.target_extra_field(target, name)

Returns a TargetExtra value of the given name, if one exists.