Skip to content
Snippets Groups Projects
Verified Commit 47407f86 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Implement model stub for checkpoints

parent 35761043
No related branches found
No related tags found
1 merge request!30Resolve "Checkpoint system"
......@@ -406,3 +406,14 @@ class EventRegistration(ExtensibleModel):
fields=["person", "event"], name="unique_person_registration_per_event"
)
]
class Checkpoint(ExtensibleModel):
event = models.ForeignKey(Event, verbose_name=_("Related event"), related_name="checkpoints")
person = models.ForeignKey(Person, verbose_name=_("Checked person"), related_name="event_checkpoints"))
comment = models.CharField(max_length=60, verbose_name=_("Comment"))
timestamp = models.DateTimeField(verbose_name=_("Date and time of check"), auto_now_add=True)
lat = models.DecimalField(max_digits=8, decimal_places=6, verbose_name=_("Latitude of check"), blank=True, null=True)
lon = models.DecimalField(max_digits=9, decimal_places=6, verbose_name=_("Longitude of check"), blank=True, null=True)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment