@@ -17,7 +17,7 @@ def upload_path(instance, old_filename): |
||
| 17 | 17 |
return 'file/{year}{month}/{timestamp}{extension}'.format(
|
| 18 | 18 |
year=today.year, |
| 19 | 19 |
month=today.month, |
| 20 |
- timestamp=time.time(), |
|
| 20 |
+ timestamp=int(time.time()), |
|
| 21 | 21 |
extension=extension |
| 22 | 22 |
) |
| 23 | 23 |
|