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

Prettier activity display

parent e24230fc
No related branches found
No related tags found
No related merge requests found
......@@ -70,6 +70,8 @@ class InterludesActivity(models.Model):
def nb_participants(self) -> str:
if self.max_participants == 0:
ret = "Illimités"
elif self.max_participants == self.min_participants:
ret = "{}".format(self.min_participants)
else:
ret = "{} - {}".format(self.min_participants, self.max_participants)
if self.must_subscribe:
......
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