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):
@property
def pretty_type(self) -> str:
type = self.Types(self.act_type).label
status = self.Status(self.status)
status_repr = "présentiel ou distanciel"
if status == self.Status.DISTANT:
status_repr = "distanciel"
elif status == self.Status.PRESENT:
status_repr = "présentiel"
return "{} ({})".format(type, status_repr)
return type
# status = self.Status(self.status)
# status_repr = "présentiel ou distanciel"
# if status == self.Status.DISTANT:
# status_repr = "distanciel"
# elif status == self.Status.PRESENT:
# status_repr = "présentiel"
# return "{} ({})".format(type, status_repr)
@property
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