Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2143669

Browse files
committed
Add Model Admin
1 parent f4395bf commit 2143669

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

django_dbq/admin.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from django.contrib import admin
2+
3+
# Register your models here.
4+
5+
from .models import Job
6+
7+
8+
@admin.register(Job)
9+
class JobAdmin(admin.ModelAdmin):
10+
list_display = ('id', 'name', 'state', 'queue_name', 'priority', 'run_after')

0 commit comments

Comments
 (0)