[doc] Fix example about Community view customization
authorElodie Thieblin <ethieblin@logilab.fr>
Wed, 18 Mar 2020 10:20:29 +0100
changeset 12925 eb26c593c6f6
parent 12924 7a76f1fcc4a3
child 12926 c829cace0172
[doc] Fix example about Community view customization
doc/tutorials/base/customizing-the-application.rst
--- a/doc/tutorials/base/customizing-the-application.rst	Wed Mar 18 09:58:05 2020 +0100
+++ b/doc/tutorials/base/customizing-the-application.rst	Wed Mar 18 10:20:29 2020 +0100
@@ -391,7 +391,7 @@
             return self.name
 
         def display_cw_logo(self):
-            return 'CubicWeb' in self.description
+            return 'CubicWeb' in self.name
 
 In this example:
 
@@ -403,10 +403,10 @@
   to display the entity (though in this case the default implementation would
   have had the same result)
 
-* we implemented here a method :meth:`display_cw_logo` which tests if the blog
-  entry title contains 'CubicWeb'. It can then be used when you're writing code
-  involving 'Community' entities in your views, hooks, etc. For instance, you can
-  modify your previous views as follows:
+* we implemented here a method :meth:`display_cw_logo` which tests if the
+  community title contains 'CubicWeb'. It can then be used when you're writing
+  code involving 'Community' entities in your views, hooks, etc. For instance,
+  you can modify your previous views as follows:
 
 .. sourcecode:: python