.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.2.6 on 2021-09-09 16:24
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('generic', '0013_questionnote_user_author'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='questionnote',
|
||||
name='note',
|
||||
field=models.TextField(blank=True),
|
||||
),
|
||||
]
|
||||
+1
-1
@@ -128,7 +128,7 @@ class QuestionNote(models.Model):
|
||||
user_author = models.ForeignKey( settings.AUTH_USER_MODEL,
|
||||
on_delete=models.CASCADE, blank=True, null=True)
|
||||
|
||||
note = models.TextField()
|
||||
note = models.TextField(blank=True)
|
||||
created_on = models.DateTimeField(auto_now_add=True)
|
||||
|
||||
complete = models.BooleanField(default=False)
|
||||
|
||||
@@ -19,12 +19,10 @@ User: {{user}}
|
||||
|
||||
<div class="fieldWrapper">
|
||||
{{ form.content_type.errors }}
|
||||
<label for="{{ form.content_type.id_for_label }}">Content Type</label>
|
||||
{{ form.content_type }}
|
||||
</div>
|
||||
<div class="fieldWrapper">
|
||||
{{ form.object_id.errors }}
|
||||
<label for="{{ form.object_id.id_for_label }}">Object id</label>
|
||||
{{ form.object_id }}
|
||||
</div>
|
||||
<div class="fieldWrapper">
|
||||
@@ -34,7 +32,7 @@ User: {{user}}
|
||||
</div>
|
||||
<div class="fieldWrapper">
|
||||
{{ form.note.errors }}
|
||||
<label for="{{ form.note.id_for_label }}">Note</label>
|
||||
<label for="{{ form.note.id_for_label }}">Additional information</label><br/>
|
||||
{{ form.note }}
|
||||
</div>
|
||||
<input type="submit" value="Submit">
|
||||
|
||||
Reference in New Issue
Block a user