This commit is contained in:
Ross
2021-09-09 17:14:09 +01:00
parent a816ec8df4
commit d5f2e37817
3 changed files with 40 additions and 2 deletions
@@ -0,0 +1,21 @@
# Generated by Django 3.2.6 on 2021-09-09 16:14
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('generic', '0012_auto_20210505_1828'),
]
operations = [
migrations.AddField(
model_name='questionnote',
name='user_author',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
),
]
+1 -2
View File
@@ -126,8 +126,7 @@ class QuestionNote(models.Model):
author = models.CharField(max_length=200, blank=True)
user_author = models.ForeignKey( settings.AUTH_USER_MODEL,
related_name="rapid_notes",
on_delete=models.CASCADE, blank=True)
on_delete=models.CASCADE, blank=True, null=True)
note = models.TextField()
created_on = models.DateTimeField(auto_now_add=True)
@@ -0,0 +1,18 @@
# Generated by Django 3.2.6 on 2021-09-09 16:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('longs', '0044_auto_20210816_1306'),
]
operations = [
migrations.AlterField(
model_name='ciduseranswer',
name='score',
field=models.CharField(blank=True, choices=[('', 'Unmarked'), ('4', '4'), ('4.5', '4.5'), ('5', '5'), ('5.5', '5.5'), ('6', '6'), ('6.5', '6.5'), ('7', '7'), ('7.5', '7.5'), ('8', '8')], default='', help_text='The final score for the candidate', max_length=3),
),
]