Skip to content

Commit 5ed9615

Browse files
authored
Merge pull request #391 from ImagingDataCommons/idc-prod-sp
v19
2 parents 8b4182a + b655ea8 commit 5ed9615

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Generated by Django 3.2.23 on 2024-08-20 23:50
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('idc_collections', '0011_auto_20231116_1627'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='attribute_tooltips',
15+
name='tooltip',
16+
field=models.TextField(),
17+
),
18+
migrations.AlterField(
19+
model_name='collection',
20+
name='collections',
21+
field=models.TextField(null=True),
22+
),
23+
]

idc_collections/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def get_public_programs(cls):
6868
return Program.objects.filter(active=True,is_public=True,owner=User.objects.get(is_active=True,username="idc",is_superuser=True,is_staff=True))
6969

7070
def __str__(self):
71-
return "{} ({}), {}".format(self.short_name, self.name, "Public" if self.is_public else "Private (owner: {})".format(self.owner.email))
71+
return "{} ({}), {}".format(self.short_name, self.display_name, "Public" if self.is_public else "Private (owner: {})".format(self.owner.email))
7272

7373

7474
class Project(models.Model):
@@ -328,7 +328,7 @@ class Collection(models.Model):
328328
objects = CollectionManager()
329329
owner = models.ForeignKey(User, on_delete=models.CASCADE)
330330
access = models.CharField(max_length=16, null=False, blank=False, default="Public")
331-
collections = models.CharField(max_length=255, null=True, blank=False)
331+
collections = models.TextField(null=True, blank=False)
332332
data_versions = models.ManyToManyField(DataVersion)
333333
# We make this many to many in case a collection is part of one program, though it may not be
334334
program = models.ForeignKey(Program, on_delete=models.CASCADE, null=True)
@@ -794,7 +794,7 @@ class Attribute_Tooltips(models.Model):
794794
attribute = models.ForeignKey(Attribute, null=False, blank=False, on_delete=models.CASCADE)
795795
# The value of the attribute linked to this tooltip
796796
tooltip_id = models.CharField(max_length=256, null=False, blank=False)
797-
tooltip = models.CharField(max_length=4096, null=False, blank=False)
797+
tooltip = models.TextField(null=False, blank=False)
798798
objects = Attribute_TooltipsManager()
799799

800800
class Meta(object):

0 commit comments

Comments
 (0)