Merge pull request #1156 from Ste-KNY/main

Implement Custom delete_queryset Method in QueueAdmin to Resolve Django 1062 Error
This commit is contained in:
Christopher Broderick 2024-02-01 21:06:31 +00:00 committed by GitHub
commit 4e08586e3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,6 +37,10 @@ class QueueAdmin(admin.ModelAdmin):
else: else:
return "-" return "-"
def delete_queryset(self, request, queryset):
for queue in queryset:
queue.delete()
@admin.register(Ticket) @admin.register(Ticket)
class TicketAdmin(admin.ModelAdmin): class TicketAdmin(admin.ModelAdmin):