Skip to content

Commit

Permalink
fix: Remove unused Meeting.session_constraintnames (#5263)
Browse files Browse the repository at this point in the history
Fixes #3389
  • Loading branch information
larseggert authored Mar 8, 2023
1 parent 8cdeddb commit 19a7fec
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions ietf/meeting/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, )

Expand Down

0 comments on commit 19a7fec

Please sign in to comment.