Commit 06de91863c82a3f8a59f72cd01e949ee2bef944a

Authored by Cesar Augusto Cadavid Lopera
Committed by GitHub
1 parent e5d8a406

Update models.py

max_length updated
Showing 1 changed file with 7 additions and 1 deletions
... ... @@ -12,7 +12,13 @@ from .abstracts import (
12 12
13 13 class Comment(CommentAbstractModel):
14 14 # Sofisis add this field for support images as comment
15   - image: FieldFile = models.FileField(_('Image'), upload_to='comments/%Y/%m/', null=True, blank=True)
  15 + image: FieldFile = models.FileField(
  16 + _('Image'),
  17 + upload_to='comments/%Y/%m/',
  18 + null=True,
  19 + blank=True,
  20 + max_length=150,
  21 + )
16 22
17 23 class Meta(CommentAbstractModel.Meta):
18 24 db_table = "django_comments"
... ...
Please register or login to post a comment