aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/models.py b/models.py
index 2100d35..0d3f2c0 100644
--- a/models.py
+++ b/models.py
@@ -75,6 +75,10 @@ class Group(models.Model):
def corresponds_to(self, timetable_id, mention, subgroup, td, tp):
return self.timetable.id == timetable_id and self.mention == mention and self.subgroup == subgroup and (self.td == td or self.td is None or td is None) and (self.tp == tp or self.tp is None or tp is None)
+ @property
+ def group_info(self):
+ return self.timetable.id, self.mention, self.subgroup, self.td, self.tp
+
def __str__(self):
return self.name