Skip to content

Commit

Permalink
update consortium array field (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalajackus authored Jul 20, 2021
1 parent 1d4ccc1 commit 53796ea
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions core/migrations/0005_auto_20210720_0543.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 2.2.10 on 2021-07-20 05:43

import django.contrib.postgres.fields
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('core', '0004_auto_20210712_0641'),
]

operations = [
migrations.AlterField(
model_name='consortium',
name='organization_uuids',
field=django.contrib.postgres.fields.ArrayField(base_field=models.UUIDField(blank=True, null=True, verbose_name='Organization UUIDs'), blank=True, null=True, size=None),
),
]
2 changes: 1 addition & 1 deletion core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ class Consortium(models.Model):
"""
consortium_uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, verbose_name='Consortium UUID')
name = models.CharField("Consortium Name", max_length=255, blank=True, help_text="Multiple organizations form a consortium together")
organization_uuids = ArrayField(models.CharField("Organization UUIDs", max_length=255, null=True, blank=True), null=True, blank=True)
organization_uuids = ArrayField(models.UUIDField("Organization UUIDs", max_length=255, null=True, blank=True), null=True, blank=True)
create_date = models.DateTimeField(default=timezone.now)
edit_date = models.DateTimeField(null=True, blank=True)

Expand Down

0 comments on commit 53796ea

Please sign in to comment.