Author: russellm
Date: 2007-09-11 20:22:13 -0500 (Tue, 11 Sep 2007)
New Revision: 6099
Modified:
django/branches/newforms-admin/django/contrib/auth/models.py
django/branches/newforms-admin/django/contrib/comments/models.py
django/branches/newforms-admin/django/contrib/flatpages/models.py
Log:
newforms-admin: Fixed #5402 -- Updated some model options to reflect the
renaming of fields to fieldsets in [6080]. Thanks to Petr Marhoun <[EMAIL
PROTECTED]> for the patch.
Modified: django/branches/newforms-admin/django/contrib/auth/models.py
===================================================================
--- django/branches/newforms-admin/django/contrib/auth/models.py
2007-09-11 14:04:40 UTC (rev 6098)
+++ django/branches/newforms-admin/django/contrib/auth/models.py
2007-09-12 01:22:13 UTC (rev 6099)
@@ -343,7 +343,7 @@
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')}),
Modified: django/branches/newforms-admin/django/contrib/comments/models.py
===================================================================
--- django/branches/newforms-admin/django/contrib/comments/models.py
2007-09-11 14:04:40 UTC (rev 6098)
+++ django/branches/newforms-admin/django/contrib/comments/models.py
2007-09-12 01:22:13 UTC (rev 6099)
@@ -281,7 +281,7 @@
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 @@
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')}),
Modified: django/branches/newforms-admin/django/contrib/flatpages/models.py
===================================================================
--- django/branches/newforms-admin/django/contrib/flatpages/models.py
2007-09-11 14:04:40 UTC (rev 6098)
+++ django/branches/newforms-admin/django/contrib/flatpages/models.py
2007-09-12 01:22:13 UTC (rev 6099)
@@ -33,7 +33,7 @@
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')}),
)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---