[GMG-Devel] [PATCH 36/83] Add schema for MediaTag.

Alon Levy alon at pobox.com
Tue Feb 25 14:58:19 EST 2014


From: Praveen Kumar <praveen97uma at gmail.com>

---
 mediagoblin/plugins/search/schemas.py | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/mediagoblin/plugins/search/schemas.py b/mediagoblin/plugins/search/schemas.py
index c4cbb5e..7963504 100644
--- a/mediagoblin/plugins/search/schemas.py
+++ b/mediagoblin/plugins/search/schemas.py
@@ -26,3 +26,13 @@ class MediaEntryIndexSchema(SchemaClass):
     media_type = TEXT
     license = TEXT
 
+class MediaTagIndexSchema(SchemaClass):
+    """
+    Represents the schema of the search index corresponding to
+    db.models.MediaTag objects.
+    """
+    id = ID(unique=True)
+
+    id_stored = ID(stored=True)
+    
+    name = TEXT
-- 
1.8.5.3



More information about the devel mailing list