File tree Expand file tree Collapse file tree 4 files changed +12
-9
lines changed Expand file tree Collapse file tree 4 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,10 @@ class Migration(migrations.Migration):
33
33
ss3.display_name AS "severity_pyramid_rung",
34
34
ss.missingness AS "missingness",
35
35
ss.license AS "license",
36
- ss.restrictions AS "restrictions"
36
+ ss.restrictions AS "restrictions",
37
+ ss.from_date AS "from_date",
38
+ ss.to_date AS "to_date",
39
+ ss.signal_availability_days AS "signal_availability_days"
37
40
FROM signals_signal ss
38
41
LEFT JOIN datasources_sourcesubdivision ds
39
42
ON ss.source_id = ds.id
Original file line number Diff line number Diff line change @@ -511,6 +511,7 @@ class SignalsDbView(models.Model):
511
511
id = models .BigIntegerField (primary_key = True )
512
512
name = models .CharField (max_length = 255 )
513
513
active = models .BooleanField ()
514
+ display_name = models .CharField (max_length = 255 )
514
515
datasource = models .CharField (max_length = 255 )
515
516
description = models .TextField ()
516
517
geographic_scope = models .CharField (max_length = 255 )
@@ -527,6 +528,9 @@ class SignalsDbView(models.Model):
527
528
restrictions = models .TextField ()
528
529
available_geography = models .CharField (max_length = 255 )
529
530
pathogens = models .CharField (max_length = 255 )
531
+ from_date = models .DateField ()
532
+ to_date = models .DateField ()
533
+ signal_availability_days = models .IntegerField ()
530
534
531
535
class Meta :
532
536
managed = False
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ <h5>{{ signalset.data_source }}</h5>
51
51
< td >
52
52
< ul class ="no-padding ">
53
53
{% for pathogen in signalset.pathogens.all %}
54
- < a href ="{% url 'signals ' %}?pathogens={{ pathogen.id }} ">
54
+ < a href ="{% url 'signal_sets ' %}?pathogens={{ pathogen.id }} ">
55
55
< span class ="badge rounded-pill bg-dark ">
56
56
{{ pathogen|title }}
57
57
</ span >
@@ -69,7 +69,7 @@ <h5>{{ signalset.data_source }}</h5>
69
69
< td >
70
70
< ul class ="no-padding ">
71
71
{% for geography in signalset.available_geographies.all %}
72
- < a href ="{% url 'signals ' %}?available_geography={{ geography.id }} ">
72
+ < a href ="{% url 'signal_sets ' %}?available_geography={{ geography.id }} ">
73
73
< span class ="badge rounded-pill bg-dark ">
74
74
{{ geography }}
75
75
</ span >
@@ -124,7 +124,7 @@ <h5>{{ signalset.data_source }}</h5>
124
124
< th scope ="row "> Severity Pyramid Rung(s)</ th >
125
125
< td >
126
126
{% for severity_pyramid_rung in signalset.severity_pyramid_rungs.all %}
127
- < a href ="{% url 'signals ' %}?severity_pyramid_rung={{ severity_pyramid_rung.id }} ">
127
+ < a href ="{% url 'signal_sets ' %}?severity_pyramid_rung={{ severity_pyramid_rung.id }} ">
128
128
< span class ="badge rounded-pill bg-dark ">
129
129
{{ severity_pyramid_rung }}
130
130
</ span >
Original file line number Diff line number Diff line change @@ -45,11 +45,7 @@ <h2 class="accordion-header" id="flush-heading_{{ form.pathogens.auto_id }}">
45
45
< input type ="checkbox " class ="form-check-input " id ="select-all ">
46
46
< label class ="form-check-label " for ="select-all "> Select all</ label >
47
47
</ div >
48
- < div id ="div_id_pathogen " class ="mb-3 ">
49
- < div >
50
- {{ form.pathogens|as_crispy_field }}
51
- </ div >
52
- </ div >
48
+ {{ form.pathogens|as_crispy_field }}
53
49
</ div >
54
50
</ div >
55
51
</ div >
You can’t perform that action at this time.
0 commit comments