Ticket #6582: comment_models.diff

File comment_models.diff, 1.6 KB (added by Mikko Hellsing <mikko@…>, 7 years ago)
  • django/contrib/comments/models.py

    old new  
    9999    class Admin:
    100100        fields = (
    101101            (None, {'fields': ('content_type', 'object_id', 'site')}),
    102             ('Content', {'fields': ('user', 'headline', 'comment')}),
    103             ('Ratings', {'fields': ('rating1', 'rating2', 'rating3', 'rating4', 'rating5', 'rating6', 'rating7', 'rating8', 'valid_rating')}),
    104             ('Meta', {'fields': ('is_public', 'is_removed', 'ip_address')}),
     102            (_('Content'), {'fields': ('user', 'headline', 'comment')}),
     103            (_('Ratings'), {'fields': ('rating1', 'rating2', 'rating3', 'rating4', 'rating5', 'rating6', 'rating7', 'rating8', 'valid_rating')}),
     104            (_('Meta'), {'fields': ('is_public', 'is_removed', 'ip_address')}),
    105105        )
    106106        list_display = ('user', 'submit_date', 'content_type', 'get_content_object')
    107107        list_filter = ('submit_date',)
     
    191191    class Admin:
    192192        fields = (
    193193            (None, {'fields': ('content_type', 'object_id', 'site')}),
    194             ('Content', {'fields': ('person_name', 'comment')}),
    195             ('Meta', {'fields': ('submit_date', 'is_public', 'ip_address', 'approved')}),
     194            (_('Content'), {'fields': ('person_name', 'comment')}),
     195            (_('Meta'), {'fields': ('submit_date', 'is_public', 'ip_address', 'approved')}),
    196196        )
    197197        list_display = ('person_name', 'submit_date', 'content_type', 'get_content_object')
    198198        list_filter = ('submit_date',)
Back to Top