[views] Unregister facet for simplified profiles
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 27 Apr 2017 10:32:42 +0200
changeset 3268 4d82b62b0e74
parent 3265 8d671007f358
child 3278 9b50a1f44134
[views] Unregister facet for simplified profiles we should only have simplified profiles, no need to run queries for that on each attempt to display facets.
cubicweb_saem_ref/views/__init__.py
--- a/cubicweb_saem_ref/views/__init__.py	Fri Apr 21 11:41:21 2017 +0200
+++ b/cubicweb_saem_ref/views/__init__.py	Thu Apr 27 10:32:42 2017 +0200
@@ -462,6 +462,9 @@
     vreg.unregister(cwuser.UserPreferencesEntityAction)
     # global actions
     vreg.unregister(actions.SiteConfigurationAction)
+    # facets
+    from cubicweb_seda.views.facets import SimplifiedProfileFacet
+    vreg.unregister(SimplifiedProfileFacet)
 
     for menu_entry in main_navigation_menu():
         vreg.register(menu_entry)