feat: Allow to bulk-activate ANs in the admin interface
This commit is contained in:
parent
89f74cb709
commit
d2542060a1
@ -24,6 +24,13 @@ class AdoptionNoticeAdmin(admin.ModelAdmin):
|
|||||||
inlines = [
|
inlines = [
|
||||||
StatusInline,
|
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
|
# Re-register UserAdmin
|
||||||
|
Loading…
Reference in New Issue
Block a user