from django.contrib import admin

from epiweb.apps.reminder.models import Reminder

class ReminderAdmin(admin.ModelAdmin):
    list_display = ('user', 'wday', 'active', 
                    'last_reminder', 'next_reminder')

admin.site.register(Reminder, ReminderAdmin)


@@ -77,16 +77,317 @@
 minder%0A%0A
+def make_active(modeladmin, request, queryset):%0A    queryset.update(active=True)%0Amake_active.short_description = 'Make selected reminders active'%0A%0Adef make_inactive(modeladmin, request, queryset):%0A    queryset.update(active=False)%0Amake_inactive.short_description = 'Make selected reminders inactive'%0A%0A
 class Re
@@ -517,16 +517,95 @@
 minder')
+%0A    ordering = ('user__username',)%0A    actions = (make_active, make_inactive,)
 %0A%0Aadmin.

Add actions to make reminders active or inactive