# Path: website2.0/mainapp/models.py
# class ImageDetections(models.Model):
#     picture = models.ImageField(upload_to = 'mainapp/uploads/')
#     uploaded_at = models.DateTimeField(auto_now_add=True)
#     resultfile = models.ImageField(upload_to = 'mainapp/detected/',blank=True)
#     face = models.BooleanField(default=False,blank=True)
#     bottle = models.BooleanField(default=False,blank=True)
#     fault = models.BooleanField(default=False,blank=True)
#     trap = models.BooleanField(default=False,blank=True)
#     neighbors = models.PositiveIntegerField(default=3)
#     scale = models.DecimalField(default=1.2,max_digits=2, decimal_places=1)
#     minsize = models.PositiveIntegerField(default=20)
#     maxsize = models.PositiveIntegerField(default=80)


from django.contrib import admin
from .models import ImageDetections

# Register your models here.

class ImageDetectionAdmin(admin.ModelAdmin):
    date_hierarchy = 'uploaded_at'
    list_display = ('picture','uploaded_at','id','face','bottle','fault','trap')



# Path: website2.0/mainapp/models.py
# class ImageDetections(models.Model):
#     picture = models.ImageField(upload_to = 'mainapp/uploads/')
#     uploaded_at = models.DateTimeField(auto_now_add=True)
#     resultfile = models.ImageField(upload_to = 'mainapp/detected/',blank=True)
#     face = models.BooleanField(default=False,blank=True)
#     bottle = models.BooleanField(default=False,blank=True)
#     fault = models.BooleanField(default=False,blank=True)
#     trap = models.BooleanField(default=False,blank=True)
#     neighbors = models.PositiveIntegerField(default=3)
#     scale = models.DecimalField(default=1.2,max_digits=2, decimal_places=1)
#     minsize = models.PositiveIntegerField(default=20)
#     maxsize = models.PositiveIntegerField(default=80)


# Path: website2.0/mainapp/admin.py
from django.contrib import admin
from .models import ImageDetections


# Register your models here.

class ImageDetectionAdmin(admin.ModelAdmin):
    date_hierarchy = 'uploaded_at'
    list_display = ('picture','uploaded_at','id','face','bottle','fault','trap')



admin.site.register(ImageDetections, ImageDetectionAdmin)