Skip to content
Snippets Groups Projects
Unverified Commit 4b9671c4 authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Merge pull request #1642 from OpenTechFund/enhancement/increase_reviewers_field_size

Allow staff to see 16 reviewers in the reviewers field, before only f…
parents 206cc881 5fff73d1
No related branches found
No related tags found
No related merge requests found
from datetime import date from datetime import date
from django import forms
from django.conf import settings from django.conf import settings
from django.core.exceptions import ValidationError from django.core.exceptions import ValidationError
from django.db import models from django.db import models
...@@ -108,7 +109,7 @@ class ApplicationBase(EmailForm, WorkflowStreamForm): # type: ignore ...@@ -108,7 +109,7 @@ class ApplicationBase(EmailForm, WorkflowStreamForm): # type: ignore
content_panels = WorkflowStreamForm.content_panels + [ content_panels = WorkflowStreamForm.content_panels + [
FieldPanel('approval_form'), FieldPanel('approval_form'),
FieldPanel('reviewers'), FieldPanel('reviewers', widget=forms.SelectMultiple(attrs={'size': '16'})),
FieldPanel('slack_channel'), FieldPanel('slack_channel'),
] ]
...@@ -174,7 +175,7 @@ class RoundBase(WorkflowStreamForm, SubmittableStreamForm): # type: ignore ...@@ -174,7 +175,7 @@ class RoundBase(WorkflowStreamForm, SubmittableStreamForm): # type: ignore
FieldPanel('end_date'), FieldPanel('end_date'),
]), ]),
], heading="Dates"), ], heading="Dates"),
FieldPanel('reviewers'), FieldPanel('reviewers', widget=forms.SelectMultiple(attrs={'size': '16'})),
ReadOnlyPanel('get_workflow_name_display', heading="Workflow", help_text="Copied from the fund."), ReadOnlyPanel('get_workflow_name_display', heading="Workflow", help_text="Copied from the fund."),
# Forms comes from parental key in models/forms.py # Forms comes from parental key in models/forms.py
ReadOnlyInlinePanel('forms', help_text="Copied from the fund."), ReadOnlyInlinePanel('forms', help_text="Copied from the fund."),
...@@ -407,7 +408,7 @@ class LabBase(EmailForm, WorkflowStreamForm, SubmittableStreamForm): # type: ig ...@@ -407,7 +408,7 @@ class LabBase(EmailForm, WorkflowStreamForm, SubmittableStreamForm): # type: ig
content_panels = WorkflowStreamForm.content_panels + [ content_panels = WorkflowStreamForm.content_panels + [
FieldPanel('approval_form'), FieldPanel('approval_form'),
FieldPanel('lead'), FieldPanel('lead'),
FieldPanel('reviewers'), FieldPanel('reviewers', widget=forms.SelectMultiple(attrs={'size': '16'})),
FieldPanel('slack_channel'), FieldPanel('slack_channel'),
] ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment