Commit 494b2719 authored by Bengfort's avatar Bengfort
Browse files

rm subject notes

parent bcc40d65
Pipeline #8148 passed with stages
in 6 minutes and 23 seconds
# Generated by Django 3.1.3 on 2020-11-17 11:35
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('subjects', '0021_merge_attributeset'),
]
operations = [
migrations.RemoveField(
model_name='subject',
name='note_abusive_language',
),
migrations.RemoveField(
model_name='subject',
name='note_difficult_to_understand',
),
migrations.RemoveField(
model_name='subject',
name='note_hard_of_hearing',
),
migrations.DeleteModel(
name='SubjectNote',
),
]
......@@ -117,10 +117,6 @@ class Subject(TimeStampedModel):
source = models.CharField(_('Data source'), max_length=128, blank=True)
note_hard_of_hearing = models.BooleanField(_('Hard of hearing'), default=False)
note_difficult_to_understand = models.BooleanField(_('Difficult to understand'), default=False)
note_abusive_language = models.BooleanField(_('Abusive language'), default=False)
additional_suitability_document = models.ManyToManyField(
StudyType,
verbose_name=_('Additional suitability document for study type'),
......@@ -170,9 +166,6 @@ class Subject(TimeStampedModel):
'availability_thursday',
'availability_friday',
'not_available_until',
'note_hard_of_hearing',
'note_difficult_to_understand',
'note_abusive_language',
'source',
'to_be_deleted',
'export_requested',
......@@ -309,11 +302,6 @@ class Subject(TimeStampedModel):
return completed, total
class SubjectNote(models.Model):
subject = models.ForeignKey(Subject, on_delete=models.CASCADE)
content = models.CharField(_('Content'), max_length=128, blank=True)
class ConsentDocument(models.Model):
created_at = models.DateTimeField(_('Created at'), auto_now_add=True)
is_valid = models.BooleanField(_('Is valid'), default=True)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment