Skip to content

Commit d2d3311

Browse files
committed
add max length to usecase logo field
1 parent 72c23b8 commit d2d3311

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

api/models/UseCase.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ class UseCase(models.Model):
2121
id = models.AutoField(primary_key=True)
2222
title = models.CharField(max_length=200, unique=True, blank=True, null=True)
2323
summary = models.CharField(max_length=10000, blank=True, null=True)
24-
logo = models.ImageField(upload_to=_use_case_directory_path, blank=True, null=True)
24+
logo = models.ImageField(
25+
upload_to=_use_case_directory_path, max_length=300, blank=True, null=True
26+
)
2527
created = models.DateTimeField(auto_now_add=True)
2628
modified = models.DateTimeField(auto_now=True)
2729
website = models.URLField(blank=True)

0 commit comments

Comments
 (0)