File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -143,10 +143,18 @@ def get_blob_name(self, field_name):
143
143
"""Get blob name for the given model field name"""
144
144
return get_blob_name (self , field_name )
145
145
146
+ def get_console_url (self , field_name ):
147
+ """Get a URL to where the file resides in GCP cloud console"""
148
+ return get_console_url (self , field_name )
149
+
146
150
def get_path (self , field_name ):
147
151
"""Get the path of the blob in the object store for the given model field name"""
148
152
return get_path (self , field_name )
149
153
150
154
def get_signed_url (self , field_name , expiration = None ):
151
155
"""Get a signed URL to the blob for the given model field name"""
152
156
return get_signed_url (self , field_name , expiration )
157
+
158
+ def get_signed_download_url (self , field_name , expiration = None ):
159
+ """Get a signed URL to the blob with the response disposition set"""
160
+ return get_signed_download_url (self , field_name , expiration )
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " django-gcp"
3
- version = " 0.16.0 "
3
+ version = " 0.16.1 "
4
4
description = " Utilities to run Django on Google Cloud Platform"
5
5
authors = [" Tom Clark" ]
6
6
license = " MIT"
You can’t perform that action at this time.
0 commit comments