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
b7dbd5ff
Kaydet (Commit)
b7dbd5ff
authored
Ara 27, 2018
tarafından
CHI Cheng
Kaydeden (comit)
Mariusz Felisiak
Ara 27, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed broken links to PyYAML page.
üst
277de229
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
initial-data.txt
docs/howto/initial-data.txt
+1
-1
serialization.txt
docs/topics/serialization.txt
+1
-1
tests.py
tests/timezones/tests.py
+1
-1
No files found.
docs/howto/initial-data.txt
Dosyayı görüntüle @
b7dbd5ff
...
...
@@ -30,7 +30,7 @@ Or, you can write fixtures by hand; fixtures can be written as JSON, XML or YAML
</topics/serialization>` has more details about each of these supported
:ref:`serialization formats <serialization-formats>`.
.. _PyYAML: https://
www.
pyyaml.org/
.. _PyYAML: https://pyyaml.org/
As an example, though, here's what a fixture for a simple ``Person`` model might
look like in JSON:
...
...
docs/topics/serialization.txt
Dosyayı görüntüle @
b7dbd5ff
...
...
@@ -165,7 +165,7 @@ Identifier Information
========== ==============================================================
.. _json: https://json.org/
.. _PyYAML: https://
www.
pyyaml.org/
.. _PyYAML: https://pyyaml.org/
XML
---
...
...
tests/timezones/tests.py
Dosyayı görüntüle @
b7dbd5ff
...
...
@@ -607,7 +607,7 @@ class SerializationTests(SimpleTestCase):
# - JSON supports only milliseconds, microseconds will be truncated.
# - PyYAML dumps the UTC offset correctly for timezone-aware datetimes,
# but when it loads this representation, it subtracts the offset and
# returns a naive datetime object in UTC
(https://pyyaml.org/ticket/202)
.
# returns a naive datetime object in UTC
. See ticket #18867
.
# Tests are adapted to take these quirks into account.
def
assert_python_contains_datetime
(
self
,
objects
,
dt
):
...
...
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