mediagoblin-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Alon Levy
Subject: [GMG-Devel] [PATCH 36/83] Add schema for MediaTag.
Date: Tue, 25 Feb 2014 21:58:19 +0200

From: Praveen Kumar <address@hidden>

---
 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]