This commit is contained in:
Ross
2021-10-22 20:38:33 +01:00
parent e6ef6b92f4
commit 2407cba4e4
2 changed files with 29 additions and 1 deletions
@@ -0,0 +1,28 @@
# Generated by Django 3.2.8 on 2021-10-22 19:38
import anatomy.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('anatomy', '0046_alter_exam_open_access'),
]
operations = [
migrations.RemoveField(
model_name='structure',
name='id',
),
migrations.AlterField(
model_name='anatomyquestion',
name='image',
field=models.ImageField(help_text="The image to use for the question. Ideally use use unmarked images and annotate (arrow) them on the test system. If you wish to reuse an image that is already uploaded 'clone' the question that contains it.As a preference", upload_to=anatomy.models.image_directory_path),
),
migrations.AlterField(
model_name='structure',
name='structure',
field=models.CharField(max_length=200, primary_key=True, serialize=False),
),
]
+1 -1
View File
@@ -43,7 +43,7 @@ class BodyPart(models.Model):
class Structure(models.Model):
structure = models.CharField(max_length=200)
structure = models.CharField(max_length=200, primary_key=True)
def __str__(self):
return self.structure