... rnal entities and entity expansion. Django uses this parser for deserializing XML-formatted database fixtures. The fixture deserializer is not intended for use with untrusted data, but in order to err on the side of safety in Django 1.3.6 the XML deserialize ... ... ia external entities and entity expansion. Django uses this parser for deserializing XML-formatted database fixtures. This deserializer is not intended for use with untrusted data, but in order to err on the side of safety in Django 1.4.4 the XML deserialize ... ... to QuerySet.annotate() or QuerySet.alias() on PostgreSQL. CVE-2025-64460: Potential denial-of-service vulnerability in XML Deserializer XML Serialization was subject to a potential denial-of-service attack due to quadratic time complexity when deserializing ... ... to QuerySet.annotate() or QuerySet.alias() on PostgreSQL. CVE-2025-64460: Potential denial-of-service vulnerability in XML Deserializer XML Serialization was subject to a potential denial-of-service attack due to quadratic time complexity when deserializing ... ... to QuerySet.annotate() or QuerySet.alias() on PostgreSQL. CVE-2025-64460: Potential denial-of-service vulnerability in XML Deserializer XML Serialization was subject to a potential denial-of-service attack due to quadratic time complexity when deserializing ... ... ssions to only one of them. See the docs on the behavior of contrib apps with multiple databases for more information. XML deserializer will not parse documents with a DTD In order to prevent exposure to denial-of-service attacks related to external entity r ... eferences and entity expansion, the XML model deserializer now refuses to parse XML documents containing a DTD (DOCTYPE definition). Since the XML serializer does not output a DTD, ... this will not impact typical usage, only cases where custom-created XML documents are passed to Django's model deserializer. Formsets default max_num A (default) value of None for the max_num argument to a formset factory no longer defaults to al ... ... ズ形式を作成することもできます。 たとえば、CSV のシリアライザとデシリアライザを考えてみましょう。まず、 Serializer クラスと Deserializer クラスを定義します。これらは既存のシリアライズ形式のクラスをオーバーライドすることができます: path/to/custom_csv_serialize ... d_object_str } \n " ) def getvalue ( self ): return super ( serializers . python . Serializer , self ) . getvalue () class Deserializer ( serializers . python . Deserializer ): def __init__ ( self , stream_or_string , ** options ): if isinstance ( stream_or_ ... ... file storage backend. """ def open ( self , name , mode = "rb" ): return Spam ( open ( self . path ( name ), mode )) YAML deserializer now uses yaml.safe_load yaml.load is able to construct any Python object, which may trigger arbitrary code execution if yo ... u process a YAML document that comes from an untrusted source. This feature isn't necessary for Django's YAML deserializer, whose primary use is to load fixtures consisting of simple objects. Even though fixtures are trusted data, the YAML deser ... ... メソッドと本文の再利用を指示できるようになりました。 シリアライズ (シリアル化) 各シリアライゼーション形式は、関数ではなく Deserializer クラスを定義するようになりました。これは、 custom serialization format を定義する際の拡張性を高めるためです。 テンプレート ... ... od to return an empty tuple: () . This ensures primary keys are serialized when using dumpdata --natural-primary . The XML deserializer now raises SuspiciousOperation when it encounters unexpected nested tags. Tasks The task() decorator now accepts **kwargs ... 2026年10月08日