Undocumented
Module | actions |
Built-in, globally-available admin actions. |
Module | apps |
No module docstring; 2/2 classes documented |
Module | checks |
No module docstring; 3/7 functions, 0/3 class documented |
Module | decorators |
Undocumented |
Module | exceptions |
No module docstring; 2/2 exceptions documented |
Module | filters |
This encapsulates the logic for displaying filters in the Django admin. Filters are specified in models with the "list_filter" option. |
Module | forms |
No module docstring; 1/2 class documented |
Module | helpers |
No module docstring; 0/1 variable, 0/1 constant, 3/10 classes documented |
Package | migrations |
Undocumented |
Module | models |
Undocumented |
Module | options |
No module docstring; 0/1 variable, 0/3 constant, 0/2 function, 0/1 exception, 2/2 classes documented |
Module | sites |
Undocumented |
Package | templatetags |
Undocumented |
Module | tests |
No module docstring; 1/2 class documented |
Module | utils |
No module docstring; 0/3 constant, 14/20 functions, 1/2 exception, 0/1 class documented |
Package | views |
Undocumented |
Module | widgets |
Form Widget classes specific to the Django admin site. |
From __init__.py
:
Class |
|
An AdminSite object encapsulates an instance of the Django admin application, ready to be hooked in to your URLconf. Models are registered with the AdminSite using the register() method, and the get_urls() method can then be used to access Django view functions that present a full admin interface for the collection of registered models. |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
No class docstring; 0/1 instance variable, 0/2 class variable, 4/5 methods documented |
Class |
|
Encapsulate all admin options and functionality for a given model. |
Class |
|
No class docstring; 1/1 property, 0/8 instance variable, 1/6 method documented |
Class |
|
Undocumented |
Class |
|
No class docstring; 0/1 instance variable, 0/1 class variable, 2/6 methods documented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Function | action |
Conveniently add attributes to an action function:: |
Function | autodiscover |
Undocumented |
Function | display |
Conveniently add attributes to a display function:: |
Function | register |
Register the given model(s) classes and wrapped ModelAdmin class with admin site: |
Constant | HORIZONTAL |
Undocumented |
Constant | VERTICAL |
Undocumented |
Variable | site |
Undocumented |
Conveniently add attributes to an action function:: @admin.action( permissions=['publish'], description='Mark selected stories as published', ) def make_published(self, request, queryset): queryset.update(status='p') This is equivalent to setting some attributes (with the original, longer names) on the function directly:: def make_published(self, request, queryset): queryset.update(status='p') make_published.allowed_permissions = ['publish'] make_published.short_description = 'Mark selected stories as published'
Conveniently add attributes to a display function:: @admin.display( boolean=True, ordering='-publish_date', description='Is Published?', ) def is_published(self, obj): return obj.publish_date is not None This is equivalent to setting some attributes (with the original, longer names) on the function directly:: def is_published(self, obj): return obj.publish_date is not None is_published.boolean = True is_published.admin_order_field = '-publish_date' is_published.short_description = 'Is Published?'