Fix celery
This commit is contained in:
parent
ee221d0938
commit
1f85f63d20
|
|
@ -11,9 +11,7 @@ class NewsTypeAdmin(admin.ModelAdmin):
|
|||
|
||||
|
||||
def send_email_action(modeladmin, request, queryset):
|
||||
news_ids =queryset.values('id')
|
||||
list_id = list(queryset.values_list('id', flat=True))
|
||||
send_email_with_news.delay(list_id)
|
||||
send_email_with_news.delay(list(queryset.values_list('id', flat=True)))
|
||||
|
||||
|
||||
send_email_action.short_description = "Send the selected news by email"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user