Explorar el Código

"simplest way" -> "preferred way"

Matt Westcott hace 3 años
padre
commit
1155373d72
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      docs/extending/template_components.md

+ 2 - 2
docs/extending/template_components.md

@@ -22,7 +22,7 @@ A (possibly empty) :doc:`form media <django:topics/forms/media>` object defining
 ```
 ## Creating components
 
-The simplest way to create a component is to define a subclass of `wagtail.admin.ui.components.Component` and specify a `template_name` attribute on it. The rendered template will then be used as the component's HTML representation:
+The preferred way to create a component is to define a subclass of `wagtail.admin.ui.components.Component` and specify a `template_name` attribute on it. The rendered template will then be used as the component's HTML representation:
 
 ```python
 from wagtail.admin.ui.components import Component
@@ -158,4 +158,4 @@ def welcome_page(request):
         {% component panel %}
     {% endfor %}
 {% endblock %}
-```
+```