From 4a8e972aa42f827129f8bbc772ca1402e85d8751 Mon Sep 17 00:00:00 2001 From: Gustavo Date: Tue, 15 Aug 2017 12:17:47 -0300 Subject: [PATCH] Included indicators field in the bulletin model --- bulletin/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bulletin/models.py b/bulletin/models.py index f99f07f..fe5a76e 100644 --- a/bulletin/models.py +++ b/bulletin/models.py @@ -18,7 +18,8 @@ def validate_file_extension(value): class Bulletin(Resource): content = models.TextField(_('Bulletin Content'), blank = True) - file_content = models.FileField(_('Bulletin Data (Goals)'), blank = True, upload_to = 'bulletin/', validators = [validate_file_extension]) + file_content = models.FileField(_('Goals'), blank = True, upload_to = 'bulletin/goals', validators = [validate_file_extension]) + indicators = models.FileField(_('Relevant Indicators'), blank = True,null = True, upload_to = 'bulletin/indicators', validators = [validate_file_extension]) class Meta: verbose_name = _('Bulletin') -- libgit2 0.21.2