crop,resized, and save picture at the right place

This commit is contained in:
Pierre-antoine Comby 2020-03-06 20:07:15 +01:00
parent 08b97e722b
commit 38feb693f3
3 changed files with 21 additions and 8 deletions

View file

@ -45,6 +45,7 @@ class Note(PolymorphicModel):
max_length=255,
blank=False,
null=False,
upload_to='pic/',
default='pic/default.png'
)
created_at = models.DateTimeField(