from django.contrib import admin
import stocksApi

# Register your models here.

@admin.register(stocksApi.models.AndroidToken)
class AndroidTokenAdmin(admin.ModelAdmin):
    fields = ("user", "token")
    actions = [stocksApi.models.AndroidToken.ping]

@admin.register(stocksApi.models.SessionId)
class SessionIdAdmin(admin.ModelAdmin):
    fields = ("id_string", "associated_user", "exp_date")
    actions = []

@@ -44,16 +44,186 @@
 cksApi%0A%0A
+def deleteAllSessionIds(admin, request, queryset):%0A    stocksApi.models.SessionId.objects.all().delete()%0AdeleteAllSessionIds.short_description = %22Delete all session ids%22%0A
 # Regist
@@ -574,10 +574,29 @@
 ions = %5B
+deleteAllSessionIds
 %5D%0A

Improve admin