Skip to content

Commit

Permalink
ciao
Browse files Browse the repository at this point in the history
  • Loading branch information
matteotolloso committed Nov 27, 2023
1 parent 4863d31 commit d5c73a8
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion smartreport/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
}
}

DEFAULT_FILE_STORAGE = 'django_storage_supabase.supabase'
# DEFAULT_FILE_STORAGE = 'django_storage_supabase.supabase'
SUPABASE_API_KEY = os.environ.get('SUPABASE_ANON_KEY')
SUPABASE_URL = "https://khjwjcfckbsfpvdmcrak.supabase.co"
SUPABASE_ROOT_PATH = '/smartreports/'
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Generated by Django 4.2.7 on 2023-11-27 17:00

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('smartreport_app', '0015_archivedreport_template_alter_archivedreport_created'),
]

operations = [
migrations.AddField(
model_name='kpi',
name='priority_doctor',
field=models.IntegerField(default=0),
),
migrations.AddField(
model_name='kpi',
name='priority_machine_maintainer',
field=models.IntegerField(default=0),
),
migrations.AddField(
model_name='kpi',
name='priority_parent',
field=models.IntegerField(default=0),
),
migrations.AddField(
model_name='kpi',
name='priority_project_manager',
field=models.IntegerField(default=0),
),
]
4 changes: 4 additions & 0 deletions smartreport_app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ class Kpi(models.Model):

# internal field
user_type = models.JSONField(default=DEFAULT_USER_CHOICES, blank=True, null=True)
priority_doctor = models.IntegerField(default=0)
priority_parent = models.IntegerField(default=0)
priority_project_manager = models.IntegerField(default=0)
priority_machine_maintainer = models.IntegerField(default=0)
allowed_charts = models.JSONField(default=DEFAULT_CHART_CHOICES, blank=True, null=True)

def __str__(self):
Expand Down

0 comments on commit d5c73a8

Please sign in to comment.