-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1463 from the-deep/project/reporting-module-charts
Project/reporting module charts
- Loading branch information
Showing
14 changed files
with
1,497 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
apps/analysis/migrations/0013_alter_analysisreportcontainer_content_type.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 3.2.17 on 2024-03-06 05:01 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('analysis', '0012_remove_analysisreportcontainer_content_style'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='analysisreportcontainer', | ||
name='content_type', | ||
field=models.SmallIntegerField(choices=[(1, 'Text'), (2, 'Heading'), (3, 'Image'), (4, 'URL'), (5, 'Timeline Chart'), (6, 'KPIs'), (7, 'Bar Chart')]), | ||
), | ||
] |
58 changes: 58 additions & 0 deletions
58
...ions/0013_alter_analysisreportcontainer_content_type_squashed_0017_merge_20240318_0519.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Generated by Django 3.2.25 on 2024-04-26 09:14 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
# Functions from the following migrations need manual copying. | ||
# Move them and any dependencies into this file, then update the | ||
# RunPython operations to refer to the local versions: | ||
# analysis.migrations.0015_analysisreportcontainerdata_client_reference_id | ||
|
||
class Migration(migrations.Migration): | ||
|
||
replaces = [ | ||
('analysis', '0013_alter_analysisreportcontainer_content_type'), | ||
('analysis', '0014_alter_analysisreportcontainer_content_type'), | ||
('analysis', '0015_analysisreportcontainerdata_client_reference_id'), | ||
('analysis', '0016_alter_analysisreportcontainer_content_type'), | ||
('analysis', '0013_auto_20240315_0501'), | ||
('analysis', '0017_merge_20240318_0519'), | ||
] | ||
|
||
dependencies = [ | ||
('analysis', '0012_remove_analysisreportcontainer_content_style'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='analysisreportcontainer', | ||
name='content_type', | ||
field=models.SmallIntegerField(choices=[(1, 'Text'), (2, 'Heading'), (3, 'Image'), (4, 'URL'), (5, 'Timeline Chart'), (6, 'KPIs'), (7, 'Bar Chart')]), | ||
), | ||
migrations.AlterField( | ||
model_name='analysisreportcontainer', | ||
name='content_type', | ||
field=models.SmallIntegerField(choices=[(1, 'Text'), (2, 'Heading'), (3, 'Image'), (4, 'URL'), (5, 'Timeline Chart'), (6, 'KPIs'), (7, 'Bar Chart'), (8, 'Map')]), | ||
), | ||
migrations.AddField( | ||
model_name='analysisreportcontainerdata', | ||
name='client_reference_id', | ||
field=models.CharField(max_length=20), | ||
preserve_default=False, | ||
), | ||
migrations.AlterField( | ||
model_name='analysisreportcontainer', | ||
name='content_type', | ||
field=models.SmallIntegerField(choices=[(1, 'Text'), (2, 'Heading'), (3, 'Image'), (4, 'URL'), (5, 'Timeline Chart'), (6, 'KPIs'), (7, 'Bar Chart'), (8, 'Map'), (9, 'Line Chart')]), | ||
), | ||
migrations.AddField( | ||
model_name='analyticalstatement', | ||
name='title', | ||
field=models.CharField(blank=True, max_length=150), | ||
), | ||
migrations.AddField( | ||
model_name='topicmodelcluster', | ||
name='title', | ||
field=models.CharField(blank=True, max_length=150), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
apps/analysis/migrations/0014_alter_analysisreportcontainer_content_type.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 3.2.17 on 2024-03-08 10:09 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('analysis', '0013_alter_analysisreportcontainer_content_type'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='analysisreportcontainer', | ||
name='content_type', | ||
field=models.SmallIntegerField(choices=[(1, 'Text'), (2, 'Heading'), (3, 'Image'), (4, 'URL'), (5, 'Timeline Chart'), (6, 'KPIs'), (7, 'Bar Chart'), (8, 'Map')]), | ||
), | ||
] |
26 changes: 26 additions & 0 deletions
26
apps/analysis/migrations/0015_analysisreportcontainerdata_client_reference_id.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Generated by Django 3.2.17 on 2024-03-11 08:56 | ||
|
||
from django.utils.crypto import get_random_string | ||
from django.db import migrations, models | ||
|
||
|
||
def generate_random_reference_id(): | ||
return get_random_string(length=16) | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('analysis', '0014_alter_analysisreportcontainer_content_type'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='analysisreportcontainerdata', | ||
name='client_reference_id', | ||
# NOTE: This will not generate random values, we don't have much data before this migrations. | ||
# So, for now just ignoring. | ||
field=models.CharField(default=generate_random_reference_id, max_length=20), | ||
preserve_default=False, | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
apps/analysis/migrations/0016_alter_analysisreportcontainer_content_type.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 3.2.17 on 2024-03-12 13:22 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('analysis', '0015_analysisreportcontainerdata_client_reference_id'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='analysisreportcontainer', | ||
name='content_type', | ||
field=models.SmallIntegerField(choices=[(1, 'Text'), (2, 'Heading'), (3, 'Image'), (4, 'URL'), (5, 'Timeline Chart'), (6, 'KPIs'), (7, 'Bar Chart'), (8, 'Map'), (9, 'Line Chart')]), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Generated by Django 3.2.17 on 2024-03-18 05:19 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('analysis', '0013_auto_20240315_0501'), | ||
('analysis', '0016_alter_analysisreportcontainer_content_type'), | ||
] | ||
|
||
operations = [ | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.