summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Shetye2025-01-27 11:28:34 +0530
committerSunil Shetye2025-01-27 11:28:34 +0530
commit930dd16f5b7338e84959b052a10074faffd1f127 (patch)
treec5216213da8e4df448f7b0d186a1186cb32ec7f7
parent88d7e12e367aaa63e140358a0d6c95626fd5a5dd (diff)
downloadCommon-Interface-Project-930dd16f5b7338e84959b052a10074faffd1f127.tar.gz
Common-Interface-Project-930dd16f5b7338e84959b052a10074faffd1f127.tar.bz2
Common-Interface-Project-930dd16f5b7338e84959b052a10074faffd1f127.zip
allow media to be null
-rw-r--r--blocks/saveAPI/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/blocks/saveAPI/models.py b/blocks/saveAPI/models.py
index cc30d8df..c458ce92 100644
--- a/blocks/saveAPI/models.py
+++ b/blocks/saveAPI/models.py
@@ -61,7 +61,7 @@ class Gallery(models.Model):
save_time = models.DateTimeField(auto_now=True)
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=False)
+ media = models.CharField(max_length=100, null=True)
# For Django Admin Panel
def image_tag(self):