diff --git a/apps/jobs/migrations/0027_submission_issubmissionclitype.py b/apps/jobs/migrations/0027_submission_from_cli.py similarity index 64% rename from apps/jobs/migrations/0027_submission_issubmissionclitype.py rename to apps/jobs/migrations/0027_submission_from_cli.py index ddec766e0d..8354c87ab7 100644 --- a/apps/jobs/migrations/0027_submission_issubmissionclitype.py +++ b/apps/jobs/migrations/0027_submission_from_cli.py @@ -1,4 +1,4 @@ -# Generated by Django 2.2.20 on 2024-04-20 16:21 +# Generated by Django 2.2.20 on 2024-04-21 02:52 from django.db import migrations, models @@ -12,7 +12,7 @@ class Migration(migrations.Migration): operations = [ migrations.AddField( model_name='submission', - name='isSubmissionCliType', - field=models.BooleanField(default=True), + name='from_cli', + field=models.BooleanField(default=False), ), ] diff --git a/apps/jobs/models.py b/apps/jobs/models.py index 24b78c203c..53eb727a23 100644 --- a/apps/jobs/models.py +++ b/apps/jobs/models.py @@ -142,7 +142,7 @@ class Submission(TimeStampedModel): is_verified_by_host = models.BooleanField(default=False) #flag for submission type: UI(False) and CLI(True) - isSubmissionCliType = models.BooleanField(default=True) + from_cli = models.BooleanField(default=False) def __str__(self): return "{}".format(self.id) diff --git a/apps/jobs/serializers.py b/apps/jobs/serializers.py index 0e67d84614..e37f893b82 100644 --- a/apps/jobs/serializers.py +++ b/apps/jobs/serializers.py @@ -68,7 +68,7 @@ class Meta: "job_name", "submission_metadata", "is_verified_by_host", - "isSubmissionCliType", + "from_cli", ) def to_representation(self, instance): diff --git a/frontend/src/js/controllers/challengeCtrl.js b/frontend/src/js/controllers/challengeCtrl.js index 1bb43f29fd..c8bf18a82b 100644 --- a/frontend/src/js/controllers/challengeCtrl.js +++ b/frontend/src/js/controllers/challengeCtrl.js @@ -708,7 +708,6 @@ formData.append("project_url", vm.projectUrl); formData.append("publication_url", vm.publicationUrl); formData.append("submission_metadata", JSON.stringify(vm.metaAttributesforCurrentSubmission)); - formData.append("isSubmissionCliType",false); if (vm.isPublicSubmission !== null) { formData.append("is_public", vm.isPublicSubmission); }