diff options
author | Suchita Lad | 2025-03-17 13:06:26 +0530 |
---|---|---|
committer | Suchita Lad | 2025-03-17 13:06:26 +0530 |
commit | 076af2321a872dce190d5314429ea151074a2960 (patch) | |
tree | 97444368db437c57ecd7adeca8a9671e9b9e4c7b | |
parent | 0fe1aeb0e4f48071c2b2a5712dd208b5dea8db4d (diff) | |
download | Common-Interface-Project-076af2321a872dce190d5314429ea151074a2960.tar.gz Common-Interface-Project-076af2321a872dce190d5314429ea151074a2960.tar.bz2 Common-Interface-Project-076af2321a872dce190d5314429ea151074a2960.zip |
Added script_dump column in gallery and statesave model
-rw-r--r-- | blocks/saveAPI/models.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/blocks/saveAPI/models.py b/blocks/saveAPI/models.py index 80b9c879..b03a3aee 100644 --- a/blocks/saveAPI/models.py +++ b/blocks/saveAPI/models.py @@ -45,6 +45,7 @@ class StateSave(models.Model): data_dump = models.TextField(null=False) base64_image = models.ImageField( upload_to='simulation_images', storage=file_storage, null=True) + script_dump = models.TextField(null=True) def save(self, *args, **kwargs): super(StateSave, self).save(*args, **kwargs) @@ -62,6 +63,7 @@ class Gallery(models.Model): book = models.ForeignKey(Book, related_name='examples', on_delete=models.CASCADE, null=True) data_dump = models.TextField(null=False) media = models.CharField(max_length=100, null=True) + script_dump = models.TextField(null=True) def lcname(self): return self.name.lower() |