mirror of
https://github.com/django/django.git
synced 2026-02-09 02:49:25 +08:00
Refs #27834 -- Restored "expression" in StrIndex's docs signature.
Documentation regression in 20dbf19fc5.
This commit is contained in:
@@ -1783,10 +1783,10 @@ Usage example:
|
||||
``StrIndex``
|
||||
------------
|
||||
|
||||
.. class:: StrIndex(string, substring, **extra)
|
||||
.. class:: StrIndex(expression, substring, **extra)
|
||||
|
||||
Returns a positive integer corresponding to the 1-indexed position of the first
|
||||
occurrence of ``substring`` inside ``string``, or 0 if ``substring`` is not
|
||||
occurrence of ``substring`` inside ``expression``, or 0 if ``substring`` is not
|
||||
found.
|
||||
|
||||
Usage example:
|
||||
|
||||
Reference in New Issue
Block a user