Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulMagos committed Nov 24, 2023
1 parent 281bbca commit 5c1875c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions smartreport_app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,12 @@ class KpiReportElement(models.Model):
ReportTemplatePage, related_name="elements", on_delete=models.CASCADE
)

kpis = models.ManyToManyField(Kpi, related_name='appears_in')
kpis = models.ManyToManyField(Kpi)

chart_type = models.CharField(
max_length=128,
)

def __str__(self):
return f"{self.report_page.report_template.name} - {self.kpi.name}"


class Alarm(models.Model):
user_type = models.CharField(
Expand Down
2 changes: 1 addition & 1 deletion smartreport_app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class KpiViewSet(viewsets.ReadOnlyModelViewSet):

def list(self, request, *args, **kwargs):

sync_kpi_lits()
# sync_kpi_lits()

return super().list(request, *args, **kwargs)

Expand Down

0 comments on commit 5c1875c

Please sign in to comment.