Browse files

explicitly import djcelery.admin so the admin functionality can propa…

…gate upward to calling apps
  • Loading branch information...
1 parent 5916c46 commit 991458c45575a014f0b21d55ce2cef998f459364 @mattcaldwell committed Mar 7, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 celery_admin/
@@ -1,10 +1,10 @@
from celery.execute import send_task
from django.contrib import admin
-from djcelery.admin import PeriodicTaskAdmin
+from djcelery import admin as djcelery_admin
from djcelery.models import PeriodicTask
-class ExtendedPeriodicTaskAdmin(PeriodicTaskAdmin):
- actions = PeriodicTaskAdmin.actions + ['run_task']
+class ExtendedPeriodicTaskAdmin(djcelery_admin.PeriodicTaskAdmin):
+ actions = djcelery_admin.PeriodicTaskAdmin.actions + ['run_task']
def run_task(self, request, queryset):
if request.user.is_superuser:

0 comments on commit 991458c

Please sign in to comment.