Explorar o código

Mark this as a python code-block

Alex Gaynor %!s(int64=11) %!d(string=hai) anos
pai
achega
6b560b50b9
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      docs/ref/utils.txt

+ 3 - 1
docs/ref/utils.txt

@@ -432,7 +432,9 @@ Atom1Feed
 
     Consider a typical case, where a view might need to call a model's method
     to perform some computation, before placing the model instance into the
-    context, where the template might invoke the method once more::
+    context, where the template might invoke the method once more:
+
+    .. code-block:: python
 
         # the model
         class Person(models.Model):