class GISModelAdmin(GeoModelAdminMixin, ModelAdmin):
Undocumented
Inherited from GeoModelAdminMixin
:
Method | formfield_for_dbfield |
Undocumented |
Class Variable | gis_widget_kwargs |
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 |
Undocumented |
Class Variable | list_display_links |
Undocumented |
Class Variable | list_editable |
Undocumented |
Class Variable | list_filter |
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_fields |
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 | radio_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 |