From b64eb40550ba46930a031d4dd1757a646d3aecf0 Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Thu, 2 Mar 2023 17:32:25 +0200 Subject: [PATCH] fix: Remove unused `Meeting.session_constraintnames` Fixes #3389 --- ietf/meeting/models.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/ietf/meeting/models.py b/ietf/meeting/models.py index b6c6b52b47..c883e5b004 100644 --- a/ietf/meeting/models.py +++ b/ietf/meeting/models.py @@ -298,26 +298,6 @@ def proceedings_format_version(self): self._proceedings_format_version = version # save this for later return self._proceedings_format_version - @property - def session_constraintnames(self): - """Gets a list of the constraint names that should be used for this meeting - - Anticipated that this will soon become a many-to-many relationship with ConstraintName - (see issue #2770). Making this a @property allows use of the .all(), .filter(), etc, - so that other code should not need changes when this is replaced. - """ - try: - mtg_num = int(self.number) - except ValueError: - mtg_num = None # should not come up, but this method should not fail - if mtg_num is None or mtg_num >= 106: - # These meetings used the old 'conflic?' constraint types labeled as though - # they were the new types. - slugs = ('chair_conflict', 'tech_overlap', 'key_participant') - else: - slugs = ('conflict', 'conflic2', 'conflic3') - return ConstraintName.objects.filter(slug__in=slugs) - def base_url(self): return "/meeting/%s" % (self.number, )