Merge branch 'develop' into images_for_kb

This commit is contained in:
Jachym Cepicky
2019-03-09 23:46:26 +01:00
committed by GitHub
3 changed files with 28 additions and 1 deletions

View File

@ -956,6 +956,7 @@ class Attachment(models.Model):
mimetypes.guess_type(self.filename, strict=False)[0] or \
'application/octet-stream'
return super(Attachment, self).save(*args, **kwargs)
def get_filename(self):