Skip to content

Commit

Permalink
CU-8697qrm0k: Add name field to Vocabulary model and update API Examp…
Browse files Browse the repository at this point in the history
…les notebook
  • Loading branch information
tomolopolis committed Jan 30, 2025
1 parent 47837d0 commit f421ae2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions webapp/api/api/migrations/0086_vocabulary_name.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.1.4 on 2025-01-30 00:36

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('api', '0085_alter_conceptdb_name_alter_dataset_name_and_more'),
]

operations = [
migrations.AddField(
model_name='vocabulary',
name='name',
field=models.CharField(blank=True, default='', max_length=100),
),
]
1 change: 1 addition & 0 deletions webapp/api/api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ def __str__(self):


class Vocabulary(models.Model):
name = models.CharField(max_length=100, default='', blank=True)
vocab_file = models.FileField()

def save(self, *args, skip_load=False, **kwargs):
Expand Down

0 comments on commit f421ae2

Please sign in to comment.