Skip to content

Commit

Permalink
chore: add is correct fiels in security question response
Browse files Browse the repository at this point in the history
Signed-off-by: maxwellgithinji <maxwellgithinji@gmail.com>
  • Loading branch information
maxwellgithinji committed Nov 19, 2021
1 parent b39e831 commit eb44bf2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.9 on 2021-11-19 15:51

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('clients', '0010_auto_20211119_0635'),
]

operations = [
migrations.AddField(
model_name='securityquestionresponse',
name='is_correct',
field=models.BooleanField(default=True),
),
]
1 change: 1 addition & 0 deletions mycarehub/clients/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class SecurityQuestionResponse(AbstractBase):
question = models.ForeignKey(SecurityQuestion, on_delete=models.PROTECT)
timestamp = models.DateTimeField(default=timezone.now)
response = models.TextField() # should be hashed
is_correct = models.BooleanField(default=True)

class Meta:
unique_together = (
Expand Down

0 comments on commit eb44bf2

Please sign in to comment.