вроде натроили переменные разные с докеркомпосами
Some checks failed
Deploy timelaps / deploy (push) Failing after 12s
Some checks failed
Deploy timelaps / deploy (push) Failing after 12s
This commit is contained in:
28
camlaps/admin.py
Normal file
28
camlaps/admin.py
Normal file
@@ -0,0 +1,28 @@
|
||||
from django.contrib import admin
|
||||
|
||||
from .models import Camera, TimelapseJob
|
||||
|
||||
|
||||
@admin.register(Camera)
|
||||
class CameraAdmin(admin.ModelAdmin):
|
||||
list_display = ('name', 'slug', 'storage_path', 'is_active', 'updated_at')
|
||||
list_filter = ('is_active',)
|
||||
search_fields = ('name', 'slug', 'storage_path')
|
||||
|
||||
|
||||
@admin.register(TimelapseJob)
|
||||
class TimelapseJobAdmin(admin.ModelAdmin):
|
||||
list_display = (
|
||||
'id',
|
||||
'camera',
|
||||
'date_from',
|
||||
'date_to',
|
||||
'sampling_interval_minutes',
|
||||
'fps',
|
||||
'status',
|
||||
'progress_percent',
|
||||
'created_at',
|
||||
)
|
||||
list_filter = ('status', 'include_night', 'sampling_preset', 'camera')
|
||||
search_fields = ('camera__name', 'output_rel_path', 'error_message')
|
||||
readonly_fields = ('progress_percent', 'frames_total', 'frames_processed', 'started_at', 'finished_at')
|
||||
Reference in New Issue
Block a user