mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-24 07:03:03 +02:00
fix adding and removing tags via admin snapshot list
This commit is contained in:
@@ -213,10 +213,9 @@ class SnapshotAdmin(SearchResultsAdminMixin, admin.ModelAdmin):
|
|||||||
delete_snapshots.short_description = "Delete"
|
delete_snapshots.short_description = "Delete"
|
||||||
|
|
||||||
def add_tag(self, request, queryset):
|
def add_tag(self, request, queryset):
|
||||||
if tag and tag.id:
|
tag = request.POST['tag']
|
||||||
tag = request.POST['tag']
|
for obj in queryset:
|
||||||
for obj in queryset:
|
obj.tags.add(tag)
|
||||||
obj.tags.add(tag)
|
|
||||||
|
|
||||||
add_tag.short_description = "Add tag"
|
add_tag.short_description = "Add tag"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user