reed-college / paneity

The state of being bread.
2 stars 0 forks source link

make it so admins can't see messages #260

Closed grantal closed 7 years ago

grantal commented 7 years ago

django_private_chat messages should not show up on the admin interface

marikaswanberg commented 7 years ago

The problem is in the Django_Private_Chat admin.py

class DialogAdmin(admin.ModelAdmin):
    list_display = ('id', 'created', 'modified', 'owner', 'opponent')
    list_filter = ('created', 'modified', 'owner', 'opponent')
admin.site.register(Dialog, DialogAdmin)

class MessageAdmin(admin.ModelAdmin):
    list_display = (
        'id',
        'created',
        'modified',
        'is_removed',
        'dialog',
        'sender',
        'text',
    )
    list_filter = ('created', 'modified', 'is_removed', 'dialog', 'sender')
admin.site.register(Message, MessageAdmin)