Show More
@@ -38,7 +38,7 b' class PostAdmin(admin.ModelAdmin):' | |||||
38 | hidden += posts.count() |
|
38 | hidden += posts.count() | |
39 | posts.delete() |
|
39 | posts.delete() | |
40 | self.message_user(request, _('{} posters were banned, {} messages were removed.').format(bans, hidden)) |
|
40 | self.message_user(request, _('{} posters were banned, {} messages were removed.').format(bans, hidden)) | |
41 | ban_latter_with_delete.short_description = 'Ban user and delete posts starting from this one and later' |
|
41 | ban_latter_with_delete.short_description = _('Ban user and delete posts starting from this one and later') | |
42 |
|
42 | |||
43 | def linked_images(self, obj: Post): |
|
43 | def linked_images(self, obj: Post): | |
44 | images = obj.attachments.filter(mimetype__in=FILE_TYPES_IMAGE) |
|
44 | images = obj.attachments.filter(mimetype__in=FILE_TYPES_IMAGE) |
General Comments 0
You need to be logged in to leave comments.
Login now