Skip to content

Commit

Permalink
Merge pull request #25 from SmartReports/fixMigrations
Browse files Browse the repository at this point in the history
Fix Migrations and static files folder collect
  • Loading branch information
PaulMagos authored Nov 11, 2023
2 parents 84458b8 + b3215fe commit 0cfaa3b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 68 deletions.
5 changes: 4 additions & 1 deletion smartreport/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@
"""
from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
# from django.conf import settings
# from django.conf.urls.static import static

urlpatterns = [
path("", include("smartreport_app.urls")),
path('admin/', admin.site.urls),
]
]
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
12 changes: 3 additions & 9 deletions smartreport_app/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Generated by Django 4.2.7 on 2023-11-11 10:08
# Generated by Django 4.2.7 on 2023-11-11 11:42

from django.db import migrations, models
import django.db.models.deletion
import smartreport_app.models


class Migration(migrations.Migration):
Expand All @@ -26,6 +27,7 @@ class Migration(migrations.Migration):
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255)),
('user_type', models.CharField(choices=[('doctor', 'Doctor'), ('parent', 'Parent'), ('project_manager', 'Project Manager'), ('machine_maintainer', 'Machine Maintainer')], max_length=128)),
('allowed_charts', models.JSONField(default=smartreport_app.models.DEFAULT_CHART_CHOICES)),
('priority', models.IntegerField(default=0)),
('isNew', models.BooleanField(default=True)),
],
Expand Down Expand Up @@ -56,14 +58,6 @@ class Migration(migrations.Migration):
('report_page', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='elements', to='smartreport_app.reporttemplatepage')),
],
),
migrations.CreateModel(
name='ChartType',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('plot_name', models.CharField(choices=[('line', 'line'), ('bar', 'bar'), ('pie', 'pie'), ('doughnut', 'doughnut'), ('radar', 'radar')], max_length=128)),
('kpi', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='allowed_charts', to='smartreport_app.kpi')),
],
),
migrations.CreateModel(
name='ArchivedReport',
fields=[
Expand Down

This file was deleted.

18 changes: 0 additions & 18 deletions smartreport_app/migrations/0003_alter_kpi_allowed_charts.py

This file was deleted.

19 changes: 0 additions & 19 deletions smartreport_app/migrations/0004_alter_kpi_allowed_charts.py

This file was deleted.

0 comments on commit 0cfaa3b

Please sign in to comment.