diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-07-21 03:46:16 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-07-21 03:46:16 +0000 |
| commit | c21f6ecee24c6587bb8ddddc878aad3fd29b40a7 (patch) | |
| tree | c419bdcc72c6e001a58dda127035474cf1800973 /django/models | |
| parent | 304b08e3254f7c46999d1204ce9968c00ad088eb (diff) | |
Fixed #92 -- meta.Admin 'fields' parameter is now optional. If it's not given, Django will use all editable fields by default. This cuts down on redundancy. Also updated relevant docs to reflect the change.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@265 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/models')
| -rw-r--r-- | django/models/auth.py | 3 | ||||
| -rw-r--r-- | django/models/core.py | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/django/models/auth.py b/django/models/auth.py index 4d3f6394a1..516ec112df 100644 --- a/django/models/auth.py +++ b/django/models/auth.py @@ -20,9 +20,6 @@ class Group(meta.Model): ) ordering = (('name', 'ASC'),) admin = meta.Admin( - fields = ( - (None, {'fields': ('name', 'permissions')}), - ), search_fields = ('name',), ) diff --git a/django/models/core.py b/django/models/core.py index 4416f22b76..bdf4567e6a 100644 --- a/django/models/core.py +++ b/django/models/core.py @@ -65,9 +65,6 @@ class Redirect(meta.Model): unique_together=(('site_id', 'old_path'),) ordering = (('old_path', 'ASC'),) admin = meta.Admin( - fields = ( - (None, {'fields': ('site_id', 'old_path', 'new_path')}), - ), list_display = ('__repr__',), list_filter = ('site_id',), search_fields = ('old_path', 'new_path'), |
