diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-01-14 20:03:28 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-01-14 20:03:28 +0000 |
| commit | 7859dee662c9fafcba1cea5cb35832a1733f9e18 (patch) | |
| tree | 4cee19569024a9fc8c0e8080456304e4f68cfd61 | |
| parent | 32c367253a0b92933939abdd9a88535971de4155 (diff) | |
newforms-admin: Added docstrings to ModelAdminView methods
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@4316 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/contrib/admin/views/main.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/django/contrib/admin/views/main.py b/django/contrib/admin/views/main.py index 3d0c6844a6..c0063552fb 100644 --- a/django/contrib/admin/views/main.py +++ b/django/contrib/admin/views/main.py @@ -113,6 +113,7 @@ def model_admin_view(request, app_label, model_name, rest_of_url): return mav(request, rest_of_url) class ModelAdminView(object): + "Class that encapsulates all admin views for a given model." def __init__(self, opts): self.opts = opts @@ -129,18 +130,23 @@ class ModelAdminView(object): return self.change_view(request, url) def add_view(self, request): + "The 'add' admin view for this model." raise NotImplementedError('Add view') def change_view(self, request, object_id): + "The 'change' admin view for this model." raise NotImplementedError('Change view with object %r' % object_id) def change_list_view(self, request): + "The 'change list' admin view for this model." raise NotImplementedError('Change list view') def delete_view(self, request, object_id): + "The 'delete' admin view for this model." raise NotImplementedError('Delete view with object %r' % object_id) def history_view(self, request, object_id): + "The 'history' admin view for this model." raise NotImplementedError('History view with object %r' % object_id) class AdminBoundField(object): |
