@@ -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
7474class 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