From 6c832cbf24e3d191b826fe38457d7cec8e514ee5 Mon Sep 17 00:00:00 2001
From: Stefano Alberto Russo <stefano.russo@gmail.com>
Date: Wed, 24 Nov 2021 02:02:21 +0100
Subject: [PATCH] Fixed the arch attribute in the Computing model moving from a
 property to a field.

---
 .../migrations/0028_computing_arch.py         | 19 +++++++++++++++++++
 .../webapp/code/rosetta/core_app/models.py    |  5 -----
 2 files changed, 19 insertions(+), 5 deletions(-)
 create mode 100644 services/webapp/code/rosetta/core_app/migrations/0028_computing_arch.py

diff --git a/services/webapp/code/rosetta/core_app/migrations/0028_computing_arch.py b/services/webapp/code/rosetta/core_app/migrations/0028_computing_arch.py
new file mode 100644
index 0000000..7088e4c
--- /dev/null
+++ b/services/webapp/code/rosetta/core_app/migrations/0028_computing_arch.py
@@ -0,0 +1,19 @@
+# Generated by Django 2.2.1 on 2021-11-24 01:00
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('core_app', '0027_computing_supported_archs'),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name='computing',
+            name='arch',
+            field=models.CharField(default='amd64', max_length=255, verbose_name='Architecture'),
+            preserve_default=False,
+        ),
+    ]
diff --git a/services/webapp/code/rosetta/core_app/models.py b/services/webapp/code/rosetta/core_app/models.py
index 346c996..e772eea 100644
--- a/services/webapp/code/rosetta/core_app/models.py
+++ b/services/webapp/code/rosetta/core_app/models.py
@@ -230,11 +230,6 @@ class Computing(models.Model):
     def default_container_runtime(self):
         return str(self.container_runtimes).split(',')[0]
     
-    @property
-    def arch(self):
-        return 'amd64'
-    
-
 
     #=======================
     # Computing manager
-- 
GitLab