Source

cmsplugin-poll / cmsplugin_poll / admin.py

Diff from to

File cmsplugin_poll/admin.py

 from django.contrib import admin
 from django.utils.translation import ugettext_lazy as _
 
+
 def make_closed(modeladmin, request, queryset):
-    queryset.update(close_date=datetime.datetime.now())
+    queryset['close_date'] = datetime.datetime.now()
 make_closed.short_description = _("Close selected polls")
 
+
 class ChoiceInline(admin.TabularInline):
     model = Choice
     extra = 5
 
+
 class PollAdmin(admin.ModelAdmin):
     fieldsets = [
         (None,                     {"fields": ["question"]}),
         (_("Date information"),    {"fields": ["pub_date"]})
-        ]
+    ]
     inlines = [ChoiceInline]
     actions = [make_closed]