... formalized API for Model._meta , providing an officially supported way to retrieve fields and filter fields based on their attributes . The Model._meta object has been part of Django since the days of pre-0.96 "Magic Removal" -- it just wasn't an official ... has_module_permission() method to allow limiting access to the module on the admin index page. InlineModelAdmin now has an attribute show_change_link that supports showing a link to an inline object's change form. Use the new django.contrib.admin.RelatedO ... o.contrib.sessions ¶ Session cookie is now deleted after flush() is called. django.contrib.sitemaps ¶ The new Sitemap.i18n attribute allows you to generate a sitemap based on the LANGUAGES setting. django.contrib.sites ¶ get_current_site() will now lookup ... ... formalized API for Model._meta , providing an officially supported way to retrieve fields and filter fields based on their attributes . The Model._meta object has been part of Django since the days of pre-0.96 "Magic Removal" -- it just wasn't an official ... has_module_permission() method to allow limiting access to the module on the admin index page. InlineModelAdmin now has an attribute show_change_link that supports showing a link to an inline object's change form. Use the new django.contrib.admin.RelatedO ... o.contrib.sessions ¶ Session cookie is now deleted after flush() is called. django.contrib.sitemaps ¶ The new Sitemap.i18n attribute allows you to generate a sitemap based on the LANGUAGES setting. django.contrib.sites ¶ get_current_site() will now lookup ... ... 要な場合に Content-Security-Policy HTTP ヘッダーを有効にすることができるようになりました。 The new InlineModelAdmin.classes attribute allows specifying classes on inline fieldsets. Inlines with a collapse class will be initially collapsed and their header ... f this geometry. Added the GEOSGeometry.covers() binary predicate. Added the GDALBand.statistics() method and mean and std attributes. Added support for the MakeLine aggregate and GeoHash function on SpatiaLite. Added support for the Difference , Intersec ... s now served using django.contrib.staticfiles if installed. The <input> tag rendered by CharField now includes a minlength attribute if the field has a min_length . Required form fields now have the required HTML attribute. Set the new Form.use_required_a ... ... 要な場合に Content-Security-Policy HTTP ヘッダーを有効にすることができるようになりました。 The new InlineModelAdmin.classes attribute allows specifying classes on inline fieldsets. Inlines with a collapse class will be initially collapsed and their header ... f this geometry. Added the GEOSGeometry.covers() binary predicate. Added the GDALBand.statistics() method and mean and std attributes. Added support for the MakeLine aggregate and GeoHash function on SpatiaLite. Added support for the Difference , Intersec ... s now served using django.contrib.staticfiles if installed. The <input> tag rendered by CharField now includes a minlength attribute if the field has a min_length . Required form fields now have the required HTML attribute. Set the new Form.use_required_a ... ... 49 exceptions. The default widgets for EmailField , URLField , IntegerField , FloatField and DecimalField use the new type attributes available in HTML5 ( type='email' , type='url' , type='number' ). Note that due to erratic support of the number input ty ... s now interpolated with its object 's __dict__ . HttpResponseRedirect and HttpResponsePermanentRedirect now provide an url attribute (equivalent to the URL the response will redirect to). The MemcachedCache cache backend now uses the latest pickle protoco ... l available. Added SuccessMessageMixin which provides a success_message attribute for FormView based classes. Added the django.db.models.ForeignKey.db_constraint and django.db.models.ManyToManyField.db_co ... ... ossible to omit models.py entirely if an application doesn't have any models. Applications can be relabeled with the label attribute of application configurations, to work around label conflicts. The name of applications can be customized in the admin wit ... new required method: deconstruct() . This method takes no arguments, and returns a tuple of four items: name : The field's attribute name on its parent model, or None if it is not part of a model path : A dotted, Python path to the class of this field, in ... for more details. マイナーな機能 ¶ django.contrib.admin ¶ You can now implement site_header , site_title , and index_title attributes on a custom AdminSite in order to easily change the admin site's page title and header text. No more needing to override ... ... 49 exceptions. The default widgets for EmailField , URLField , IntegerField , FloatField and DecimalField use the new type attributes available in HTML5 ( type='email' , type='url' , type='number' ). Note that due to erratic support of the number input ty ... s now interpolated with its object 's __dict__ . HttpResponseRedirect and HttpResponsePermanentRedirect now provide an url attribute (equivalent to the URL the response will redirect to). The MemcachedCache cache backend now uses the latest pickle protoco ... l available. Added SuccessMessageMixin which provides a success_message attribute for FormView based classes. Added the django.db.models.ForeignKey.db_constraint and django.db.models.ManyToManyField.db_co ... ... ModelAdmin.readonly_fields ¶ The ModelAdmin.readonly_fields attribute in the Django admin allows displaying model fields and model attributes. While the former were correctly escaped, the latt ... nt could be injected into the admin, presenting an exploitation vector for XSS attacks. In this vulnerability, every model attribute used in readonly_fields that is not an actual model field (e.g. a property ) will fail to be escaped even if that attribut ... 前のトピックへ Django 1.7.7 リリースノート 次のトピックへ Django 1.7.5 リリースノート 関連キーワード fields model readonly attribute ModelAdmin admin were correctly escaped Fixed foreign リリースノート March fixes security issue several bugs Mitigated att ... ... ossible to omit models.py entirely if an application doesn't have any models. Applications can be relabeled with the label attribute of application configurations, to work around label conflicts. The name of applications can be customized in the admin wit ... new required method: deconstruct() . This method takes no arguments, and returns a tuple of four items: name : The field's attribute name on its parent model, or None if it is not part of a model path : A dotted, Python path to the class of this field, in ... for more details. マイナーな機能 ¶ django.contrib.admin ¶ You can now implement site_header , site_title , and index_title attributes on a custom AdminSite in order to easily change the admin site's page title and header text. No more needing to override ... ... ModelAdmin.readonly_fields ¶ The ModelAdmin.readonly_fields attribute in the Django admin allows displaying model fields and model attributes. While the former were correctly escaped, the latt ... nt could be injected into the admin, presenting an exploitation vector for XSS attacks. In this vulnerability, every model attribute used in readonly_fields that is not an actual model field (e.g. a property ) will fail to be escaped even if that attribut ... ピックへ Django 1.7.7 リリースノート 次のトピックへ Django 1.7.5 リリースノート 関連キーワード fields model Django readonly attribute ModelAdmin admin were correctly escaped field Fixed foreign key リリースノート March fixes security issue several 関連する ... 2026年10月08日