Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
newforms-admin: Fixed #5402 -- Updated some model options to reflect …
…the renaming of fields to fieldsets in [6080]. Thanks to Petr Marhoun <petr.marhoun@gmail.com> for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@6099 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
freakboy3742 committed Sep 12, 2007
1 parent f892464 commit 4046a61
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion django/contrib/auth/models.py
Expand Up @@ -343,7 +343,7 @@ class GroupAdmin(admin.ModelAdmin):
filter_horizontal = ('permissions',)

class UserAdmin(admin.ModelAdmin):
fields = (
fieldsets = (
(None, {'fields': ('username', 'password')}),
(_('Personal info'), {'fields': ('first_name', 'last_name', 'email')}),
(_('Permissions'), {'fields': ('is_staff', 'is_active', 'is_superuser', 'user_permissions')}),
Expand Down
4 changes: 2 additions & 2 deletions django/contrib/comments/models.py
Expand Up @@ -281,7 +281,7 @@ def __repr__(self):
from django.contrib import admin

class CommentAdmin(admin.ModelAdmin):
fields = (
fieldsets = (
(None, {'fields': ('content_type', 'object_id', 'site')}),
('Content', {'fields': ('user', 'headline', 'comment')}),
('Ratings', {'fields': ('rating1', 'rating2', 'rating3', 'rating4', 'rating5', 'rating6', 'rating7', 'rating8', 'valid_rating')}),
Expand All @@ -294,7 +294,7 @@ class CommentAdmin(admin.ModelAdmin):
raw_id_fields = ('user',)

class FreeCommentAdmin(admin.ModelAdmin):
fields = (
fieldsets = (
(None, {'fields': ('content_type', 'object_id', 'site')}),
('Content', {'fields': ('person_name', 'comment')}),
('Meta', {'fields': ('submit_date', 'is_public', 'ip_address', 'approved')}),
Expand Down
2 changes: 1 addition & 1 deletion django/contrib/flatpages/models.py
Expand Up @@ -33,7 +33,7 @@ def get_absolute_url(self):
from django.contrib import admin

class FlatPageAdmin(admin.ModelAdmin):
fields = (
fieldsets = (
(None, {'fields': ('url', 'title', 'content', 'sites')}),
('Advanced options', {'classes': 'collapse', 'fields': ('enable_comments', 'registration_required', 'template_name')}),
)
Expand Down

0 comments on commit 4046a61

Please sign in to comment.