... arField: username> # A field from another model that has a relation with the current model >>> User . _meta . get_field ( "logentry" ) <ManyToOneRel: admin.logentry> # A non existent field >>> User . _meta . get_field ( "does_not_exist" ) Traceback (most ... with hidden=True . >>> from django.contrib.auth.models import User >>> User . _meta . get_fields () (<ManyToOneRel: admin.logentry>, <django.db.models.fields.AutoField: id>, <django.db.models.fields.CharField: password>, <django.db.models.fields.DateTim ... nclude_hidden = True ) (<ManyToOneRel: auth.user_groups>, <ManyToOneRel: auth.user_user_permissions>, <ManyToOneRel: admin.logentry>, <django.db.models.fields.AutoField: id>, <django.db.models.fields.CharField: password>, <django.db.models.fields.DateTim ... ... Registered を発生させます。 AdminSite. get_log_entries ( request ) [ソース] サイトインデックスページに表示される、関連する LogEntry インスタンスのクエリセットを返します。このメソッドは、他の条件でログエントリをフィルタするためにオーバーライドできます。 U ... Lがあると、デフォルトの admin ログインページのパスワードボックスの下に "forgot your password? "というリンクが表示されます。 LogEntry オブジェクト class models. LogEntry LogEntry クラスは管理画面を通して行われたオブジェクトの追加、変更、削除を記録します。 ... LogEntry の属性 LogEntry. action_time アクションの日時。 LogEntry. user アクションを実行したユーザー( AUTH_USER_MODEL インスタンス)。 LogEntry. c ... ... #22426 ). Restored the ability to reverse() views created using functools.partial() ( #22486 ). Fixed the object_id of the LogEntry that's created after a user password change in the admin ( #22515 ). ... ... els.UserManager のメソッド) Action (django.contrib.admin のクラス) action() (django.contrib.admin モジュール) action_flag (LogEntry の属性) action_time (LogEntry の属性) ActionLocation (django.contrib.admin のクラス) actions (ModelAdmin の属性) actions_o ... _template (ModelAdmin の属性) CHANGE_LIST (ActionLocation の属性) change_list_template (ModelAdmin の属性) change_message (LogEntry の属性) change_view() (ModelAdmin のメソッド) changed_data (Form の属性) changed_objects (models.BaseModelFormSet の属性) ... nt_params (HttpRequest の属性) content_type (django.views.generic.base.TemplateResponseMixin の属性) (HttpRequest の属性) (LogEntry の属性) (models.Permission の属性) (UploadedFile の属性) content_type_extra (UploadedFile の属性) ContentFile (django.core ... ... el back references used to_field ( #36197 ). Fixed a regression in Django 5.1 where the pre_save and post_save signals for LogEntry were not sent when deleting a single object in the admin ( #36217 ). ... ... del's changelist will now be rendered (without the add button). This makes it easier to add custom tools in this case. The LogEntry model now stores change messages in a JSON structure so that the message can be dynamically translated using the current a ... ctive language. A new LogEntry.get_change_message() method is now the preferred way of retrieving the change message. Selected objects for fields in Mode ... CommandError instead of showing a warning when the specified fixture file is not found. Instead of directly accessing the LogEntry.change_message attribute, it's now better to call the LogEntry.get_change_message() method which will provide the message ... ... jango.db import connection, reset_queries, models from django.conf import settings from django.contrib.admin.models import LogEntry from django.contrib.auth.models import Group, Permission, User from django.contrib.contenttypes.models import ContentType ... ... られました。 To improve performance, the delete_selected admin action now uses QuerySet.bulk_create() when creating multiple LogEntry objects. As a result, pre_save and post_save signals for LogEntry are not sent when multiple objects are deleted via this ... admin action. 5.1 で非推奨となった機能 その他 ModelAdmin.log_deletion() メソッドと LogEntryManager.log_action() メソッドは非推奨になりました。サブクラスは代わりに ModelAdmin.log_deletions() と LogEntryManager.log_a ... ... -Wall manage.py shell --verbosity = 2 6 objects imported automatically, including: from django.contrib.admin.models import LogEntry from django.contrib.auth.models import Group, Permission, User from django.contrib.contenttypes.models import ContentType ... y -Wall manage.py shell --verbosity=2 6 objects imported automatically, including: from django.contrib.admin.models import LogEntry from django.contrib.auth.models import Group, Permission, User from django.contrib.contenttypes.models import ContentType ... ... ( Http404 , HttpResponse , HttpResponseNotAllowed , StreamingHttpResponse , cookie , ) # local Django from .models import LogEntry # try/except try : import yaml except ImportError : yaml = None CONSTANT = "foo" class Example : ... Use convenience impor ... 2026年10月08日