basic support for bulk series uploading
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 4.1.4 on 2023-08-14 11:17
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('generic', '0008_delete_selfreview'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='modality',
|
||||
name='short_code',
|
||||
field=models.CharField(max_length=5, null=True, unique=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='modality',
|
||||
name='modality',
|
||||
field=models.CharField(max_length=200, unique=True),
|
||||
),
|
||||
]
|
||||
+3
-2
@@ -46,10 +46,11 @@ def findMiddle(input_list):
|
||||
|
||||
|
||||
class Modality(models.Model):
|
||||
modality = models.CharField(max_length=200)
|
||||
modality = models.CharField(max_length=200, unique=True)
|
||||
short_code = models.CharField(max_length=5, unique=True, null=True)
|
||||
|
||||
def __str__(self):
|
||||
return self.modality
|
||||
return f"{self.modality} ({self.short_code})"
|
||||
|
||||
|
||||
class Plane(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user