diff options
author | Caleb Forbes Davis V <caldavis@gmail.com> | 2011-08-10 12:48:23 -0500 |
---|---|---|
committer | Caleb Forbes Davis V <caldavis@gmail.com> | 2011-08-10 12:48:23 -0500 |
commit | 84abd2bbc43e2d92d429c679f49e237207057150 (patch) | |
tree | 5d3f0ad456b8fb4bc8f1602ab5822d45da4112a6 /mediagoblin/db/models.py | |
parent | ad4aef3a67301cf941944981f50dc8734efb9b91 (diff) | |
download | mediagoblin-84abd2bbc43e2d92d429c679f49e237207057150.tar.lz mediagoblin-84abd2bbc43e2d92d429c679f49e237207057150.tar.xz mediagoblin-84abd2bbc43e2d92d429c679f49e237207057150.zip |
Bug #372 - MediaEntry.thumbnail_file not used
- deleted the thumbnail_file from the media_entries collection
- added a migration to remove the field from previous db versions
Diffstat (limited to 'mediagoblin/db/models.py')
-rw-r--r-- | mediagoblin/db/models.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py index 4ef2d928..aff2a65b 100644 --- a/mediagoblin/db/models.py +++ b/mediagoblin/db/models.py @@ -169,8 +169,6 @@ class MediaEntry(Document): - attachment_files: A list of "attachment" files, ones that aren't critical to this piece of media but may be usefully relevant to people viewing the work. (currently unused.) - - - thumbnail_file: Deprecated... we should remove this ;) """ __collection__ = 'media_entries' @@ -196,10 +194,7 @@ class MediaEntry(Document): # The following should be lists of lists, in appropriate file # record form - 'attachment_files': list, - - # This one should just be a single file record - 'thumbnail_file': [unicode]} + 'attachment_files': list} required_fields = [ 'uploader', 'created', 'media_type', 'slug'] |