Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulMagos committed Nov 11, 2023
1 parent 45f0c69 commit 560d419
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,5 @@ cython_debug/
node_modules

# Static files
staticfiles_build
staticfiles_build
.vercel
3 changes: 2 additions & 1 deletion smartreport_app/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,6 @@ def get_kpi_name(self, obj):

@admin.register(DashboardLayout)
class DashboardLayoutAdmin(admin.ModelAdmin):
list_display = ('user_type', 'layout') # Fields to display in the list view
list_display = ('id', 'user_type', 'layout') # Fields to display in the list view
list_filter = ("user_type", )
search_fields = ('user_type',) # Fields to enable searching in the admin interface
6 changes: 0 additions & 6 deletions smartreport_app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,6 @@ class Alarm(models.Model):
min_value = models.FloatField()
max_value = models.FloatField()

def __str__(self):
return self.name


class DashboardLayout(models.Model):
user_type = models.CharField(
Expand All @@ -126,9 +123,6 @@ class DashboardLayout(models.Model):

layout = models.JSONField()

def __str__(self):
return self.name


class ArchivedReport(models.Model):
created = models.DateTimeField(auto_now_add=True)
Expand Down

0 comments on commit 560d419

Please sign in to comment.