[views] Fix add sub-archive-units menu on archive units of simplified profile
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 22 Mar 2017 17:38:49 +0100
changeset 2528 9e7c9100b29b
parent 2521 97ae1cc7a9e7
child 2529 46136e5af131
[views] Fix add sub-archive-units menu on archive units of simplified profile which unexpectedly propose to add "reference archive unit" because a class attribute hadn't followed a renaming in its parent class.
cubicweb_seda/views/archiveunit.py
--- a/cubicweb_seda/views/archiveunit.py	Wed Mar 22 17:32:33 2017 +0100
+++ b/cubicweb_seda/views/archiveunit.py	Wed Mar 22 17:38:49 2017 +0100
@@ -987,7 +987,9 @@
 
     __select__ = ArchiveUnitArchiveUnitsTab.__select__ & simplified_profile()
 
-    sub_unit_types = [('unit_content', _('seda_archive_unit_object'))]
+    unit_custom_arguments = [
+        ('unit_type', 'unit_content', _('archive unit (content)')),
+    ]
 
 
 # data objects tab #############################################################