Skip to content

Commit

Permalink
Merge pull request #27 from SmartReports/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
matteotolloso authored Nov 11, 2023
2 parents 4d2e486 + ee843cd commit 45f0c69
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions smartreport_app/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
ReportTemplatePage,
KpiReportElement,
Alarm,
DashboardLayout
)


Expand Down Expand Up @@ -56,3 +57,8 @@ def get_kpi_name(self, obj):
return obj.kpi.name

get_kpi_name.short_description = "KPI Name"

@admin.register(DashboardLayout)
class DashboardLayoutAdmin(admin.ModelAdmin):
list_display = ('user_type', 'layout') # Fields to display in the list view
search_fields = ('user_type',) # Fields to enable searching in the admin interface

0 comments on commit 45f0c69

Please sign in to comment.