Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
325db2a8
Kaydet (Commit)
325db2a8
authored
Mar 21, 2017
tarafından
seanfagan
Kaydeden (comit)
Tim Graham
Mar 21, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #27945 -- Clarified that RegexValidator searches with the regex.
üst
43380e91
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
validators.py
django/core/validators.py
+1
-1
validators.txt
docs/ref/validators.txt
+2
-2
No files found.
django/core/validators.py
Dosyayı görüntüle @
325db2a8
...
...
@@ -52,7 +52,7 @@ class RegexValidator:
def
__call__
(
self
,
value
):
"""
Validate that the input
matches
the regular expression
Validate that the input
contains a match for
the regular expression
if inverse_match is False, otherwise raise ValidationError.
"""
if
not
(
self
.
inverse_match
is
not
bool
(
self
.
regex
.
search
(
...
...
docs/ref/validators.txt
Dosyayı görüntüle @
325db2a8
...
...
@@ -85,8 +85,8 @@ to, or in lieu of custom ``field.clean()`` methods.
.. attribute:: regex
The regular expression pattern to search for
the provided ``value``,
or a pre-compiled regular expression. By default, raises a
The regular expression pattern to search for
within the provided
``value``,
or a pre-compiled regular expression. By default, raises a
:exc:`~django.core.exceptions.ValidationError` with :attr:`message`
and :attr:`code` if a match is not found. That standard behavior can
be reversed by setting :attr:`inverse_match` to ``True``, in which case
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment