Skip to content

Commit

Permalink
🐛 Fix __str__ methods on some models
Browse files Browse the repository at this point in the history
  • Loading branch information
jh0ker committed Jul 17, 2024
1 parent de728ed commit 1e3ac64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion okr/models/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,4 @@ class Meta:
)

def __str__(self):
return f'{self.key_result} ({dt.datetime.strftime(self.date, "%d.%m.%Y")})'
return f'{self.key_result} ({dt.date.strftime(self.date, "%d.%m.%Y")})'
2 changes: 1 addition & 1 deletion okr/models/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,4 +562,4 @@ class Meta:
last_updated = models.DateTimeField(verbose_name="Zuletzt upgedated", auto_now=True)

def __str__(self):
return f"{self.youtube_video.youtube.name} - {self.youtube_video.title}: {self.search_term}"
return f"{self.youtube_video.youtube.name} - {self.youtube_video.title}: {self.name}"

0 comments on commit 1e3ac64

Please sign in to comment.