Selaa lähdekoodia

Fixed #21710 -- Documented User.get_short_name()

Thanks Keryn Knight for the report.
Tim Graham 11 vuotta sitten
vanhempi
commit
0150830687
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      docs/ref/contrib/auth.txt

+ 4 - 0
docs/ref/contrib/auth.txt

@@ -128,6 +128,10 @@ Methods
         the :attr:`~django.contrib.auth.models.User.last_name`, with a space in
         between.
 
+    .. method:: get_short_name()
+
+        Returns the :attr:`~django.contrib.auth.models.User.first_name`.
+
     .. method:: set_password(raw_password)
 
         Sets the user's password to the given raw string, taking care of the