attachment delete route and added the attachment updaloed by fields
This commit is contained in:
@@ -58,4 +58,8 @@ class MessageAdmin(ModelAdmin, ImportExportModelAdmin):
|
||||
}
|
||||
def content_display(self, obj):
|
||||
return obj.content[0:35] + '...'
|
||||
content_display.short_description = 'محتوای پیام'
|
||||
content_display.short_description = 'محتوای پیام'
|
||||
|
||||
@admin.register(Attachment)
|
||||
class AttachmentAdmin(ModelAdmin, ImportExportModelAdmin):
|
||||
list_display = ['name', 'uploaded_by']
|
||||
Reference in New Issue
Block a user