diff --git a/api/migrations/0026_alter_uploadtask_status.py b/api/migrations/0026_alter_uploadtask_status.py index 2e68e5d..42c0bae 100644 --- a/api/migrations/0026_alter_uploadtask_status.py +++ b/api/migrations/0026_alter_uploadtask_status.py @@ -4,15 +4,24 @@ class Migration(migrations.Migration): - dependencies = [ - ('api', '0025_alter_importtask_progress'), + ("api", "0025_alter_importtask_progress"), ] operations = [ migrations.AlterField( - model_name='uploadtask', - name='status', - field=models.CharField(blank=True, choices=[('PENDING', 'Pending'), ('PROCESSING', 'Processing'), ('COMPLETED', 'Completed'), ('FAILED', 'Failed')], default='PENDING', max_length=20), + model_name="uploadtask", + name="status", + field=models.CharField( + blank=True, + choices=[ + ("PENDING", "Pending"), + ("PROCESSING", "Processing"), + ("COMPLETED", "Completed"), + ("FAILED", "Failed"), + ], + default="PENDING", + max_length=20, + ), ), ] diff --git a/gmw/serializers.py b/gmw/serializers.py index 498a28b..e461e59 100644 --- a/gmw/serializers.py +++ b/gmw/serializers.py @@ -14,7 +14,7 @@ class Meta: model = gmw_models.GMW fields = "__all__" - def get_linked_gmns(self, obj) ->list: + def get_linked_gmns(self, obj) -> list: try: linked_gmns = set( measuringpoint.gmn.uuid