Skip to content

Commit

Permalink
StaticFile.__str__ should always return a str, not e.g. a Path() inst…
Browse files Browse the repository at this point in the history
…ance

Refs django-commons#2002
  • Loading branch information
matthiask committed Oct 27, 2024
1 parent a21604a commit f46f9d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debug_toolbar/panels/staticfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self, path):
self.path = path

def __str__(self):
return self.path
return str(self.path)

def real_path(self):
return finders.find(self.path)
Expand Down

0 comments on commit f46f9d1

Please sign in to comment.