Code

Ticket #6185: r6898_comment_submit_date_fix.diff

File r6898_comment_submit_date_fix.diff, 695 bytes (added by brosner, 6 years ago)

workaround to a legacy comments app problem

Line 
1diff --git a/django/contrib/comments/models.py b/django/contrib/comments/models.py
2index d65440e..f418e9a 100644
3--- a/django/contrib/comments/models.py
4+++ b/django/contrib/comments/models.py
5@@ -297,7 +297,7 @@ class FreeCommentAdmin(admin.ModelAdmin):
6     fieldsets = (
7         (None, {'fields': ('content_type', 'object_id', 'site')}),
8         ('Content', {'fields': ('person_name', 'comment')}),
9-        ('Meta', {'fields': ('submit_date', 'is_public', 'ip_address', 'approved')}),
10+        ('Meta', {'fields': ('is_public', 'ip_address', 'approved')}),
11     )
12     list_display = ('person_name', 'submit_date', 'content_type', 'get_content_object')
13     list_filter = ('submit_date',)