from django.contrib import admin

from external_push.models import GenericPushTarget, BrewersFriendPushTarget, BrewfatherPushTarget, ThingSpeakPushTarget, GrainfatherPushTarget


@admin.register(GenericPushTarget)
class GenericPushTargetAdmin(admin.ModelAdmin):
    list_display = ('name', 'status', 'target_host')

@admin.register(BrewersFriendPushTarget)
class BrewersFriendPushTargetAdmin(admin.ModelAdmin):
    list_display = ('gravity_sensor_to_push', 'status', 'push_frequency')

@admin.register(BrewfatherPushTarget)
class BrewfatherPushTargetAdmin(admin.ModelAdmin):
    list_display = ('gravity_sensor_to_push', 'status', 'push_frequency')

# TODO - Reenable this
#@admin.register(ThingSpeakPushTarget)
#class ThingSpeakPushTargetAdmin(admin.ModelAdmin):
#    list_display = ('gravity_sensors_to_push', 'status', 'push_frequency', 'target_host')

@admin.register(GrainfatherPushTarget)
class GrainfatherPushTargetAdmin(admin.ModelAdmin):
    list_display = ('gravity_sensor_to_push', 'status', 'push_frequency')

@@ -647,32 +647,8 @@
 ')%0A%0A
-# TODO - Reenable this%0A#
 @adm
@@ -681,17 +681,16 @@
 Target)%0A
-#
 class Th
@@ -736,10 +736,8 @@
 n):%0A
-# 
    l
@@ -756,74 +756,22 @@
 = ('
-gravity_sensors_to_push', 'status', 'push_frequency', 'target_host
+name', 'status
 ')%0A%0A

Enable admin for ThingSpeak push target