Skip to content

Commit

Permalink
fix for conceal
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarika-padmanaban committed Jan 9, 2025
1 parent 1df44a5 commit d108aaa
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
23 changes: 23 additions & 0 deletions backend/dataset/migrations/0056_auto_20250109_1926.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 3.2.14 on 2025-01-09 13:56

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('dataset', '0055_auto_20241029_0902'),
]

operations = [
migrations.AlterField(
model_name='interaction',
name='language',
field=models.CharField(choices=[('English', 'English'), ('Assamese', 'Assamese'), ('Bengali', 'Bengali'), ('Burmese', 'Burmese'), ('Bodo', 'Bodo'), ('Dogri', 'Dogri'), ('Gujarati', 'Gujarati'), ('Hindi', 'Hindi'), ('Kannada', 'Kannada'), ('Kashmiri', 'Kashmiri'), ('Konkani', 'Konkani'), ('Maithili', 'Maithili'), ('Malayalam', 'Malayalam'), ('Manipuri', 'Manipuri'), ('Marathi', 'Marathi'), ('Nepali', 'Nepali'), ('Odia', 'Odia'), ('Punjabi', 'Punjabi'), ('Sanskrit', 'Sanskrit'), ('Santali', 'Santali'), ('Sindhi', 'Sindhi'), ('Sinhala', 'Sinhala'), ('Tamil', 'Tamil'), ('Telugu', 'Telugu'), ('Thai', 'Thai'), ('Urdu', 'Urdu')], help_text='Language of the interaction', max_length=20, verbose_name='Language'),
),
migrations.AlterField(
model_name='multimodelinteraction',
name='language',
field=models.CharField(choices=[('English', 'English'), ('Assamese', 'Assamese'), ('Bengali', 'Bengali'), ('Burmese', 'Burmese'), ('Bodo', 'Bodo'), ('Dogri', 'Dogri'), ('Gujarati', 'Gujarati'), ('Hindi', 'Hindi'), ('Kannada', 'Kannada'), ('Kashmiri', 'Kashmiri'), ('Konkani', 'Konkani'), ('Maithili', 'Maithili'), ('Malayalam', 'Malayalam'), ('Manipuri', 'Manipuri'), ('Marathi', 'Marathi'), ('Nepali', 'Nepali'), ('Odia', 'Odia'), ('Punjabi', 'Punjabi'), ('Sanskrit', 'Sanskrit'), ('Santali', 'Santali'), ('Sindhi', 'Sindhi'), ('Sinhala', 'Sinhala'), ('Tamil', 'Tamil'), ('Telugu', 'Telugu'), ('Thai', 'Thai'), ('Urdu', 'Urdu')], help_text='Language of the interaction', max_length=20, verbose_name='Language'),
),
]
18 changes: 18 additions & 0 deletions backend/projects/migrations/0061_project_conceal.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.14 on 2025-01-09 13:56

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('projects', '0060_auto_20241029_0902'),
]

operations = [
migrations.AddField(
model_name='project',
name='conceal',
field=models.BooleanField(default=False, help_text='To hide annotator,reviewer and superchecker details.', verbose_name='conceal'),
),
]
6 changes: 6 additions & 0 deletions backend/projects/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ class Project(models.Model):
default=False,
help_text=("Indicates whether a project is archieved or not."),
)
conceal = models.BooleanField(
verbose_name="conceal",
default=False,
help_text=("To hide annotator,reviewer and superchecker details."),
)

is_published = models.BooleanField(
verbose_name="project_is_published",
default=False,
Expand Down
3 changes: 3 additions & 0 deletions backend/projects/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class Meta:
"description",
"created_by",
"is_archived",
"conceal",
"is_published",
"annotators",
"annotation_reviewers",
Expand Down Expand Up @@ -62,6 +63,7 @@ class Meta:
"description",
"is_archived",
"is_published",
"conceal",
"annotators",
"annotation_reviewers",
"review_supercheckers",
Expand All @@ -82,6 +84,7 @@ class Meta:
"description",
"created_by",
"is_archived",
"conceal",
"is_published",
"workspace_id",
"organization_id",
Expand Down

0 comments on commit d108aaa

Please sign in to comment.