Skip to content

Commit

Permalink
fix(backend): allow editing users (#227)
Browse files Browse the repository at this point in the history
reason: copy paste mistake, .duration instead of .days
ref: #219
  • Loading branch information
c0rydoras authored May 29, 2024
1 parent 9de89d5 commit 2380bb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/timed/employment/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class AbsenceCredit(models.Model):
"""

def __str__(self) -> str:
return f"{self.user.username} ({self.duration})"
return f"{self.user.username} ({self.days} days)"


class OvertimeCredit(models.Model):
Expand Down

0 comments on commit 2380bb4

Please sign in to comment.