Commit 4a8e972aa42f827129f8bbc772ca1402e85d8751
1 parent
7647abe4
Exists in
master
and in
2 other branches
Included indicators field in the bulletin model
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
bulletin/models.py
@@ -18,7 +18,8 @@ def validate_file_extension(value): | @@ -18,7 +18,8 @@ def validate_file_extension(value): | ||
18 | 18 | ||
19 | class Bulletin(Resource): | 19 | class Bulletin(Resource): |
20 | content = models.TextField(_('Bulletin Content'), blank = True) | 20 | content = models.TextField(_('Bulletin Content'), blank = True) |
21 | - file_content = models.FileField(_('Bulletin Data (Goals)'), blank = True, upload_to = 'bulletin/', validators = [validate_file_extension]) | 21 | + file_content = models.FileField(_('Goals'), blank = True, upload_to = 'bulletin/goals', validators = [validate_file_extension]) |
22 | + indicators = models.FileField(_('Relevant Indicators'), blank = True,null = True, upload_to = 'bulletin/indicators', validators = [validate_file_extension]) | ||
22 | 23 | ||
23 | class Meta: | 24 | class Meta: |
24 | verbose_name = _('Bulletin') | 25 | verbose_name = _('Bulletin') |