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
13af4e3b
Commit
13af4e3b
authored
Oct 15, 2017
by
Fandi Iksani
Browse files
change to old-style classes super
parent
3d34dc07
Changes
1
Hide whitespace changes
Inline
Side-by-side
private_storage/views.py
View file @
13af4e3b
...
...
@@ -130,7 +130,7 @@ class PrivateStorageDetailView(SingleObjectMixin, PrivateStorageView):
def
get
(
self
,
request
,
*
args
,
**
kwargs
):
self
.
object
=
self
.
get_object
()
return
super
().
get
(
request
,
*
args
,
**
kwargs
)
return
super
(
PrivateStorageDetailView
,
self
).
get
(
request
,
*
args
,
**
kwargs
)
def
get_path
(
self
):
file
=
getattr
(
self
.
object
,
self
.
model_file_field
)
...
...
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