Commit 5711e9e
committed
Rename time information APIs to be Django-compliant
The following `MinioStorage` methods are renamed:
* `accessed_time` -> `get_accessed_time`
* `created_time` -> `get_created_time`
* `modified_time` -> `get_modified_time`
Additionally, `get_accessed_time` and `get_created_time` now raise
`NotImplementedError`, as this information is not available from Minio.
See:
https://docs.djangoproject.com/en/5.2/ref/files/storage/#django.core.files.storage.Storage.get_accessed_time
https://docs.djangoproject.com/en/5.2/ref/files/storage/#django.core.files.storage.Storage.get_created_time
https://docs.djangoproject.com/en/5.2/ref/files/storage/#django.core.files.storage.Storage.get_accessed_time
Fixes #83.1 parent beb2654 commit 5711e9e
File tree
2 files changed
+14
-16
lines changed- minio_storage
- tests/test_app/tests
2 files changed
+14
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
351 | | - | |
| 351 | + | |
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
356 | 356 | | |
357 | | - | |
| 357 | + | |
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
| 361 | + | |
362 | 362 | | |
363 | | - | |
| 363 | + | |
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
57 | 56 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
62 | 60 | | |
63 | 61 | | |
64 | 62 | | |
65 | | - | |
| 63 | + | |
66 | 64 | | |
67 | 65 | | |
68 | 66 | | |
| |||
0 commit comments