mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-25 01:13:31 +01:00
Implement Custom delete_queryset Method in QueueAdmin to Resolve Django 1062 Error
This commit is contained in:
parent
147151a271
commit
aaafe397c1
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user