admin.models.LogEntry.object_id

LogEntry.object_id The textual representation of the modified object’s primary key.

admin.models.LogEntry.content_type

LogEntry.content_type The ContentType of the modified object.

admin.models.LogEntry.change_message

LogEntry.change_message The detailed description of the modification. In the case of an edit, for example, the message contains a list of the edited fields. The Django admin site formats this content as a JSON structure, so that get_change_message() can recompose a message translated in the current user language. Custom code might set this as a plain string though. You are advised to use the get_change_message() method to retrieve this value instead of accessing it directly. Changed in Djan

admin.models.LogEntry.action_time

LogEntry.action_time The date and time of the action.

admin.models.LogEntry.get_change_message()

LogEntry.get_change_message() New in Django 1.10. Formats and translates change_message into the current user language. Messages created before Django 1.10 will always be displayed in the language in which they were logged.

admin.ModelAdmin.view_on_site

ModelAdmin.view_on_site Set view_on_site to control whether or not to display the “View on site” link. This link should bring you to a URL where you can display the saved object. This value can be either a boolean flag or a callable. If True (the default), the object’s get_absolute_url() method will be used to generate the url. If your model has a get_absolute_url() method but you don’t want the “View on site” button to appear, you only need to set view_on_site to False: from django.contrib

admin.models.LogEntry

class models.LogEntry The LogEntry class tracks additions, changes, and deletions of objects done through the admin interface.

admin.models.LogEntry.action_flag

LogEntry.action_flag The type of action logged: ADDITION, CHANGE, DELETION. For example, to get a list of all additions done through the admin: from django.contrib.admin.models import LogEntry, ADDITION LogEntry.objects.filter(action_flag=ADDITION)

admin.ModelAdmin.show_full_result_count

ModelAdmin.show_full_result_count Set show_full_result_count to control whether the full count of objects should be displayed on a filtered admin page (e.g. 99 results (103 total)). If this option is set to False, a text like 99 results (Show all) is displayed instead. The default of show_full_result_count=True generates a query to perform a full count on the table which can be expensive if the table contains a large number of rows.

admin.ModelAdmin.save_related()

ModelAdmin.save_related(request, form, formsets, change) [source] The save_related method is given the HttpRequest, the parent ModelForm instance, the list of inline formsets and a boolean value based on whether the parent is being added or changed. Here you can do any pre- or post-save operations for objects related to the parent. Note that at this point the parent object and its form have already been saved.