Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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...
commit 4046a617935c1fa1e25d998b706af54f8ef92eef 1 parent f892464
@freakboy3742 freakboy3742 authored
View
2  django/contrib/auth/models.py
@@ -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')}),
View
4 django/contrib/comments/models.py
@@ -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')}),
@@ -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')}),
View
2  django/contrib/flatpages/models.py
@@ -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')}),
)
Please sign in to comment.
Something went wrong with that request. Please try again.