Skip to content

Commit

Permalink
Nettoyage code mort (#1075)
Browse files Browse the repository at this point in the history
  • Loading branch information
etchegom authored Dec 18, 2023
1 parent cd832db commit f726af9
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions conventions/models/convention.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,17 +337,6 @@ def get_last_bailleur_notification(self):
def get_last_instructeur_notification(self):
return self._get_last_notification_by_role(TypeRole.INSTRUCTEUR)

def get_last_submission(self):
try:
return self.conventionhistories.filter(
statut_convention__in=[
ConventionStatut.INSTRUCTION.label,
ConventionStatut.CORRECTION.label,
],
).latest("cree_le")
except ConventionHistory.DoesNotExist:
return None

def get_email_bailleur_users(self, all_bailleur_users=False):
"""
return the email of the bailleurs to send them an email following their email preferences
Expand Down

0 comments on commit f726af9

Please sign in to comment.