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
5371ef0c
Commit
5371ef0c
authored
Jan 11, 2017
by
Diederik van der Boor
Browse files
Fixed TypeError due to passing `self` to the access function
parent
0e9c2fea
Changes
1
Show whitespace changes
Inline
Side-by-side
private_storage/views.py
View file @
5371ef0c
...
@@ -20,7 +20,7 @@ class PrivateStorageView(View):
...
@@ -20,7 +20,7 @@ class PrivateStorageView(View):
storage
=
private_storage
storage
=
private_storage
#: The authorisation rule for accessing
#: The authorisation rule for accessing
can_access_file
=
import_symbol
(
appconfig
.
PRIVATE_STORAGE_AUTH_FUNCTION
)
can_access_file
=
staticmethod
(
import_symbol
(
appconfig
.
PRIVATE_STORAGE_AUTH_FUNCTION
)
)
#: Import the server class once
#: Import the server class once
server_class
=
get_server_class
(
appconfig
.
PRIVATE_STORAGE_SERVER
)
server_class
=
get_server_class
(
appconfig
.
PRIVATE_STORAGE_SERVER
)
...
...
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