class documentation

class RedirectAdmin(admin.ModelAdmin):

View In Hierarchy

Undocumented

Class Variable list​_display Undocumented
Class Variable list​_filter Undocumented
Class Variable radio​_fields Undocumented
Class Variable search​_fields Undocumented

Inherited from ModelAdmin:

Method add​_view Undocumented
Method change​_view Undocumented
Method changelist​_view The 'change list' admin view for this model.
Method delete​_model Given a model instance delete it from the database.
Method delete​_queryset Given a queryset, delete it from the database.
Method delete​_view Undocumented
Method get​_actions Return a dictionary mapping the names of all actions for this ModelAdmin to a tuple of (callable, name, description) for each action.
Method get​_changeform​_initial​_data Get the initial form data from the request's GET params.
Method get​_changelist Return the ChangeList class for use on the changelist page.
Method get​_changelist​_form Return a Form class for use in the Formset on the changelist page.
Method get​_changelist​_formset Return a FormSet class for use on the changelist page if list_editable is used.
Method get​_deleted​_objects Hook for customizing the delete process for the delete view and the "delete selected" action.
Method get​_form Return a Form class for use in the admin add view. This is used by add_view and change_view.
Method get​_formset​_kwargs Undocumented
Method get​_formsets​_with​_inlines Yield formsets and the corresponding inlines.
Method get​_inline​_instances Undocumented
Method get​_list​_display Return a sequence containing the fields to be displayed on the changelist.
Method get​_list​_display​_links Return a sequence containing the fields to be displayed as links on the changelist. The list_display parameter is the list of fields returned by get_list_display().
Method get​_list​_filter Return a sequence containing the fields to be displayed as filters in the right sidebar of the changelist page.
Method get​_list​_select​_related Return a list of fields to add to the select_related() part of the changelist items query.
Method get​_paginator Undocumented
Method get​_search​_fields Return a sequence containing the fields to be searched whenever somebody submits a search query.
Method get​_search​_results Return a tuple containing a queryset to implement the search and a boolean indicating if the results may contain duplicates.
Method get​_urls Undocumented
Method history​_view The 'history' admin view for this model.
Method message​_user Send a message to the user. The default implementation posts a message using the django.contrib.messages backend.
Method response​_add Determine the HttpResponse for the add_view stage.
Method response​_change Determine the HttpResponse for the change_view stage.
Method response​_delete Determine the HttpResponse for the delete_view stage.
Method save​_formset Given an inline formset save it to the database.
Method save​_model Given a model instance save it to the database.
Method save​_related No summary
Class Variable actions Undocumented
Class Variable actions​_on​_bottom Undocumented
Class Variable actions​_on​_top Undocumented
Class Variable actions​_selection​_counter Undocumented
Class Variable add​_form​_template Undocumented
Class Variable change​_form​_template Undocumented
Class Variable change​_list​_template Undocumented
Class Variable date​_hierarchy Undocumented
Class Variable delete​_confirmation​_template Undocumented
Class Variable delete​_selected​_confirmation​_template Undocumented
Class Variable inlines Undocumented
Class Variable list​_display​_links Undocumented
Class Variable list​_editable Undocumented
Class Variable list​_max​_show​_all Undocumented
Class Variable list​_per​_page Undocumented
Class Variable list​_select​_related Undocumented
Class Variable object​_history​_template Undocumented
Class Variable popup​_response​_template Undocumented
Class Variable preserve​_filters Undocumented
Class Variable save​_as Undocumented
Class Variable save​_as​_continue Undocumented
Class Variable save​_on​_top Undocumented
Class Variable search​_help​_text Undocumented
Static Method ​_get​_action​_description Undocumented
Method __init__ Undocumented
Method __repr__ Undocumented
Method __str__ Undocumented
Method ​_changeform​_view Undocumented
Method ​_create​_formsets Helper function to generate formsets for add/change_view.
Method ​_delete​_view The 'delete' admin view for this model.
Method ​_filter​_actions​_by​_permissions Filter out any actions that the user doesn't have access to.
Method ​_get​_base​_actions Return the list of actions, prior to any request-based filtering.
Method ​_get​_edited​_object​_pks Return POST data values of list_editable primary keys.
Method ​_get​_form​_for​_get​_fields Undocumented
Method ​_get​_list​_editable​_queryset Based on POST data, return a queryset of the objects that were edited via list_editable.
Method ​_get​_obj​_does​_not​_exist​_redirect Create a message informing the user that the object doesn't exist and return a redirect to the admin index page.
Method ​_response​_post​_save Undocumented
Method action​_checkbox A list_display column containing a checkbox widget.
Method changeform​_view Undocumented
Method construct​_change​_message Construct a JSON structure describing changes from a changed object.
Method get​_action Return a given action from a parameter, which can either be a callable, or the name of a method on the ModelAdmin. Return is a tuple of (callable, name, description).
Method get​_action​_choices Return a list of choices for use in a form object. Each choice is a tuple (name, description).
Method get​_changelist​_instance Return a ChangeList instance based on request. May raise IncorrectLookupParameters.
Method get​_inline​_formsets Undocumented
Method get​_model​_perms Return a dict of all perms for this model. This dict has the keys add, change, delete, and view mapping to the True/False for each of those actions.
Method get​_object Return an instance matching the field and value provided, the primary key is used if no field is provided. Return None if no match is found or the object_id fails validation.
Method get​_preserved​_filters Return the preserved filters querystring.
Method log​_addition Log that an object has been successfully added.
Method log​_change Log that an object has been successfully changed.
Method log​_deletion Log that an object will be deleted. Note that this method must be called before the deletion.
Method render​_change​_form Undocumented
Method render​_delete​_form Undocumented
Method response​_action Handle an admin action. This is called if a request is POSTed to the changelist; it returns an HttpResponse if the action was handled, and None otherwise.
Method response​_post​_save​_add Figure out where to redirect after the 'Save' button has been pressed when adding a new object.
Method response​_post​_save​_change Figure out where to redirect after the 'Save' button has been pressed when editing an existing object.
Method save​_form Given a ModelForm return an unsaved instance. change is True if the object is being changed, and False if it's being added.
Instance Variable admin​_site Undocumented
Instance Variable model Undocumented
Instance Variable opts Undocumented
Property media Undocumented
Property urls Undocumented

Inherited from BaseModelAdmin (via ModelAdmin):

Method check Undocumented
Method formfield​_for​_choice​_field Get a form Field for a database Field that has declared choices.
Method formfield​_for​_dbfield Hook for specifying the form Field instance for a given database Field instance.
Method formfield​_for​_foreignkey Get a form Field for a ForeignKey.
Method formfield​_for​_manytomany Get a form Field for a ManyToManyField.
Method get​_autocomplete​_fields Return a list of ForeignKey and/or ManyToMany fields which should use an autocomplete widget.
Method get​_empty​_value​_display Return the empty_value_display set on ModelAdmin or AdminSite.
Method get​_exclude Hook for specifying exclude.
Method get​_field​_queryset If the ModelAdmin specifies ordering, the queryset should respect that ordering. Otherwise don't specify the queryset, let the field decide (return None in that case).
Method get​_fields Hook for specifying fields.
Method get​_fieldsets Hook for specifying fieldsets.
Method get​_inlines Hook for specifying custom inlines.
Method get​_ordering Hook for specifying field ordering.
Method get​_prepopulated​_fields Hook for specifying custom prepopulated fields.
Method get​_queryset Return a QuerySet of all model instances that can be edited by the admin site. This is used by changelist_view.
Method get​_readonly​_fields Hook for specifying custom readonly fields.
Method get​_sortable​_by Hook for specifying which fields can be sorted in the changelist.
Method get​_view​_on​_site​_url Undocumented
Method has​_add​_permission Return True if the given request has permission to add an object. Can be overridden by the user in subclasses.
Method has​_change​_permission Return True if the given request has permission to change the given Django model instance, the default implementation doesn't examine the obj parameter.
Method has​_delete​_permission Return True if the given request has permission to change the given Django model instance, the default implementation doesn't examine the obj parameter.
Method has​_module​_permission Return True if the given request has any permission in the given app label.
Method has​_view​_or​_change​_permission Undocumented
Method has​_view​_permission Return True if the given request has permission to view the given Django model instance. The default implementation doesn't examine the obj parameter.
Method lookup​_allowed Undocumented
Method to​_field​_allowed Return True if the model associated with this admin should be allowed to be referenced by the specified field.
Class Variable autocomplete​_fields Undocumented
Class Variable exclude Undocumented
Class Variable fields Undocumented
Class Variable fieldsets Undocumented
Class Variable filter​_horizontal Undocumented
Class Variable filter​_vertical Undocumented
Class Variable ordering Undocumented
Class Variable prepopulated​_fields Undocumented
Class Variable raw​_id​_fields Undocumented
Class Variable readonly​_fields Undocumented
Class Variable show​_full​_result​_count Undocumented
Class Variable sortable​_by Undocumented
Class Variable view​_on​_site Undocumented
Instance Variable formfield​_overrides Undocumented
list_display: tuple[str, ...] =
list_filter: tuple[str, ...] =
search_fields: tuple[str, ...] =