-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding char fields to fill in when they had previous TB
- Loading branch information
1 parent
8909b0a
commit 642d19c
Showing
3 changed files
with
28 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('tb', '0041_auto_20160822_1054'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='tbhistory', | ||
name='date_of_other_tb_contact', | ||
field=models.CharField(max_length=255, null=True, verbose_name=b'Date of TB Contact', blank=True), | ||
), | ||
migrations.AddField( | ||
model_name='tbhistory', | ||
name='date_of_previous_tb_infection', | ||
field=models.CharField(max_length=255, null=True, verbose_name=b'Date of Previous TB Infection', blank=True), | ||
), | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{% load forms %} | ||
{% textarea field="TBHistory.personal_history_of_tb" %} | ||
{% input field="TBHistory.date_of_previous_tb_infection" show="editing.tb_history.personal_history_of_tb[0].length" %} | ||
{% textarea field="TBHistory.other_tb_contact" %} | ||
{% input field="TBHistory.date_of_other_tb_contact" show="editing.tb_history.other_tb_contact[0].length" %} |