Small representation fix.

This commit is contained in:
Víðir Valberg Guðmundsson 2018-08-05 18:21:30 +02:00
parent 6593d16966
commit a33e932858
2 changed files with 8 additions and 1 deletions

View file

@ -349,3 +349,10 @@ class TeamShift(CampRelatedModel):
return self.team.camp return self.team.camp
camp_filter = 'team__camp' camp_filter = 'team__camp'
def __str__(self):
return "{} team shift from {} to {}".format(
self.team.name,
self.shift_range.lower,
self.shift_range.upper
)

View file

@ -3,7 +3,7 @@
{% block team_content %} {% block team_content %}
<form method="post">{% csrf_token %} <form method="post">{% csrf_token %}
<p>Are you sure you want to delete "{{ object }}"?</p> <p>Are you sure you want to delete {{ object }}?</p>
<input type="submit" class="btn btn-danger" value="Confirm" /> <input type="submit" class="btn btn-danger" value="Confirm" />
</form> </form>