web/views/facets.py
changeset 6427 c8a5ac2d1eaa
parent 6141 b8287e54b528
child 6463 67b0ad068f5d
--- a/web/views/facets.py	Sat Oct 09 00:05:50 2010 +0200
+++ b/web/views/facets.py	Sat Oct 09 00:05:52 2010 +0200
@@ -137,6 +137,11 @@
 
 # facets ######################################################################
 
+class CWSourceFacet(RelationFacet):
+    __regid__ = 'cw_source-facet'
+    rtype = 'cw_source'
+    target_attr = 'name'
+
 class CreatedByFacet(RelationFacet):
     __regid__ = 'created_by-facet'
     rtype = 'created_by'