aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db/models.py
diff options
context:
space:
mode:
authorCaleb Forbes Davis V <caldavis@gmail.com>2011-07-27 14:42:09 -0500
committerCaleb Forbes Davis V <caldavis@gmail.com>2011-07-27 14:51:57 -0500
commit0712a06dc6d6b05cb78d4b10af12c051e8f765e3 (patch)
tree16feba97f0589fdf1c2811c23340f4a002a1ae47 /mediagoblin/db/models.py
parent97e4498c10c803c9d239011d4c48efef52673ec3 (diff)
downloadmediagoblin-0712a06dc6d6b05cb78d4b10af12c051e8f765e3.tar.lz
mediagoblin-0712a06dc6d6b05cb78d4b10af12c051e8f765e3.tar.xz
mediagoblin-0712a06dc6d6b05cb78d4b10af12c051e8f765e3.zip
changes tags to a list of dicts in the db, adding tag slugs
- adds a function to convert the tag list of dicts to a text string properly delimited for loading into forms - tag string conversion function updated to generate list of dicts - updates all mentions of the conversion of the string to the tags db object - adds a tags template utility and updates the media template accordingly
Diffstat (limited to 'mediagoblin/db/models.py')
-rw-r--r--mediagoblin/db/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py
index 279cb9f2..8fcbb208 100644
--- a/mediagoblin/db/models.py
+++ b/mediagoblin/db/models.py
@@ -82,7 +82,7 @@ class MediaEntry(Document):
'media_type': unicode,
'media_data': dict, # extra data relevant to this media_type
'plugin_data': dict, # plugins can dump stuff here.
- 'tags': [unicode],
+ 'tags': [dict],
'state': unicode,
# For now let's assume there can only be one main file queued