瀏覽代碼

Corrected code-block directives in docs/ref/models/meta.txt.

Jon Dufresne 4 年之前
父節點
當前提交
fe886eee36
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      docs/ref/models/meta.txt

+ 2 - 2
docs/ref/models/meta.txt

@@ -44,7 +44,7 @@ Retrieving a single field instance of a model by name
     :class:`~django.core.exceptions.FieldDoesNotExist` exception will be
     raised.
 
-    .. code-block:: python
+    .. code-block:: pycon
 
         >>> from django.contrib.auth.models import User
 
@@ -84,7 +84,7 @@ Retrieving all field instances of a model
         as :class:`~django.db.models.ManyToManyField`, or
         :class:`~django.db.models.ForeignKey`) that start with a "+".
 
-    .. code-block:: python
+    .. code-block:: pycon
 
         >>> from django.contrib.auth.models import User
         >>> User._meta.get_fields()