Skip to content

Commit bdb1a70

Browse files
committed
Method for determining AssetView url path
1 parent 5875dd0 commit bdb1a70

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plain/plain/assets/views.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ class AssetView(View):
2828
This class could be subclassed to further tweak the responses or behavior.
2929
"""
3030

31+
def get_url_path(self):
32+
return self.url_kwargs["path"]
33+
3134
def get(self):
32-
url_path = self.url_kwargs["path"]
35+
url_path = self.get_url_path()
3336

3437
# Make a trailing slash work, but we don't expect it
3538
url_path = url_path.rstrip("/")

0 commit comments

Comments
 (0)