Django

Code

Ticket #6185: r6898_comment_submit_date_fix.diff

File r6898_comment_submit_date_fix.diff, 0.7 kB (added by brosner, 1 year ago)

workaround to a legacy comments app problem

  • a/django/contrib/comments/models.py

    old new  
    297297    fieldsets = ( 
    298298        (None, {'fields': ('content_type', 'object_id', 'site')}), 
    299299        ('Content', {'fields': ('person_name', 'comment')}), 
    300         ('Meta', {'fields': ('submit_date', 'is_public', 'ip_address', 'approved')}), 
     300        ('Meta', {'fields': ('is_public', 'ip_address', 'approved')}), 
    301301    ) 
    302302    list_display = ('person_name', 'submit_date', 'content_type', 'get_content_object') 
    303303    list_filter = ('submit_date',)