Skip to content
Snippets Groups Projects
Commit 88bb82f4 authored by Dorian Lesbre's avatar Dorian Lesbre
Browse files

Removed distanciel/presentiel precision from activity display

parent 600adcbe
No related branches found
No related tags found
No related merge requests found
...@@ -106,13 +106,14 @@ class InterludesActivity(models.Model): ...@@ -106,13 +106,14 @@ class InterludesActivity(models.Model):
@property @property
def pretty_type(self) -> str: def pretty_type(self) -> str:
type = self.Types(self.act_type).label type = self.Types(self.act_type).label
status = self.Status(self.status) return type
status_repr = "présentiel ou distanciel" # status = self.Status(self.status)
if status == self.Status.DISTANT: # status_repr = "présentiel ou distanciel"
status_repr = "distanciel" # if status == self.Status.DISTANT:
elif status == self.Status.PRESENT: # status_repr = "distanciel"
status_repr = "présentiel" # elif status == self.Status.PRESENT:
return "{} ({})".format(type, status_repr) # status_repr = "présentiel"
# return "{} ({})".format(type, status_repr)
@property @property
def slug(self) -> str: def slug(self) -> str:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment