Events are now sorted by time. Added is_suggested and is_only_for_gm for events

This commit is contained in:
2022-11-02 10:19:40 +03:00
parent f066d10d93
commit 29871e5155
4 changed files with 54 additions and 23 deletions
+2
View File
@@ -61,6 +61,8 @@ class Event(models.Model):
time = models.TimeField('Time')
title = models.CharField('Title', max_length=250)
description = models.TextField('Description', max_length=2500)
is_suggested = models.BooleanField('IsSuggested')
is_only_for_gm = models.BooleanField('IsOnlyForGm')
def __str__(self):
return f'({self.day}, {self.time}, {self.title})'