Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed setting fallback content type when not guessed

  • Loading branch information...
commit 330baad7ee3a73b6cbe78ba1e0deb41a80c8ac6d 1 parent e6c4949
@jlecker jlecker authored lukeman committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 mimesis/models.py
View
4 mimesis/models.py
@@ -38,8 +38,8 @@ def save(self, *args, **kwargs):
self.media_subtype = mime[1]
except:
# Mime type unknown, use text/plain
- self.type = "text"
- self.sub_type = "plain"
+ self.media_type = "text"
+ self.media_subtype = "plain"
super(MediaUpload, self).save()
Please sign in to comment.
Something went wrong with that request. Please try again.