Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Websites UFRPE
Django Private Storage
Commits
f140b819
Unverified
Commit
f140b819
authored
May 23, 2018
by
Diederik van der Boor
Browse files
Add PrivateFile.__repr__ for sentry debugging
parent
7945019d
Changes
1
Hide whitespace changes
Inline
Side-by-side
private_storage/models.py
View file @
f140b819
...
...
@@ -15,6 +15,9 @@ class PrivateFile(object):
self
.
relative_name
=
relative_name
self
.
parent_object
=
parent_object
def
__repr__
(
self
):
return
'<PrivateFile: {}>'
.
format
(
self
.
relative_name
)
@
cached_property
def
full_path
(
self
):
# Not using self.storage.open() as the X-Sendfile needs a normal path.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment