@@ -52,7 +52,7 @@ def file_save(file_=None, file_path=None, prefix='img', ext='jpeg', watermark=Fa |
||
| 52 | 52 |
settings.WATERMARK_LOGO, |
| 53 | 53 |
os.path.join(settings.MEDIA_ROOT, photo_watermark_path).replace('\\', '/')
|
| 54 | 54 |
) |
| 55 |
- photo.photo_watermark_path |
|
| 55 |
+ photo.photo_watermark_path = photo_watermark_path |
|
| 56 | 56 |
photo.save() |
| 57 | 57 |
|
| 58 | 58 |
# 缩略图 |