feat: Allow to bulk-activate ANs in the admin interface

This commit is contained in:
moanos [he/him] 2024-11-22 18:50:46 +01:00
parent 89f74cb709
commit d2542060a1

View File

@ -24,6 +24,13 @@ class AdoptionNoticeAdmin(admin.ModelAdmin):
inlines = [
StatusInline,
]
actions = ("activate",)
def activate(self, request, queryset):
for obj in queryset:
obj.set_active()
activate.short_description = _("Ausgewählte Vermittlungen aktivieren")
# Re-register UserAdmin