Преглед изворни кода

[5.0.x] Fixed typo in docs/internals/contributing/writing-code/coding-style.txt.

Backport of aaffbabd58c8f3c9bf82cd4eb98b8c5cb9e7aa6a from main
Koo пре 1 година
родитељ
комит
540b28ff9f
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      docs/internals/contributing/writing-code/coding-style.txt

+ 2 - 2
docs/internals/contributing/writing-code/coding-style.txt

@@ -310,8 +310,8 @@ Model style
 
     class MyModel(models.Model):
         class Direction(models.TextChoices):
-            UP = U, "Up"
-            DOWN = D, "Down"
+            UP = "U", "Up"
+            DOWN = "D", "Down"
 
 Use of ``django.conf.settings``
 ===============================