Implement Custom delete_queryset Method in QueueAdmin to Resolve Django 1062 Error

This commit is contained in:
Ste-KNY 2024-01-31 14:13:25 +01:00
parent 147151a271
commit aaafe397c1

View File

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