-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/4 small issues #579
Changes from 1 commit
6cdfacb
667860e
53bfe72
c3c459e
7ef30ec
75ab28a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Generated by Django 3.2.20 on 2023-11-16 09:41 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
replaces = [('proposals', '0050_alter_proposal_avg_understood'), ('proposals', '0051_auto_20231116_1030')] | ||
|
||
dependencies = [ | ||
('proposals', '0049_alter_proposal_supervisor'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='proposal', | ||
name='avg_understood', | ||
), | ||
migrations.AddField( | ||
model_name='proposal', | ||
name='privacy_officer', | ||
field=models.BooleanField(blank=True, default=None, null=True, verbose_name='Ik heb mijn aanvraag en de documenten voor deelnemers besproken met de privacy officer.'), | ||
), | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ def update_is_commssion_review(apps, schema_editor): | |
SUPERVISOR_STAGE = 0 | ||
if review.stage == SUPERVISOR_STAGE: | ||
review.is_commission_review = False | ||
review.update_go() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In theory this should work... However, the production DB isn't as clean as we would like. I'd feel better if the code was something like this:
It's a lot simpler, and should be safer. |
||
review.save() | ||
|
||
class Migration(migrations.Migration): | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,7 +90,7 @@ <h3> | |
</em> | ||
</li> | ||
{% endif %} | ||
{% if review.stage == review.SUPERVISOR %} | ||
{% if review.is_commission_review == False %} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's cleaner to write |
||
<li> | ||
<strong> | ||
{% blocktrans trimmed %} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -556,7 +556,7 @@ def form_valid(self, form): | |
|
||
# Don't notify the secretary if this is a supervisor decision. | ||
# If it was a GO they the secretary will be notified anyway | ||
if not review.stage == review.SUPERVISOR: | ||
if review.is_commission_review == True: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
notify_secretary(form.instance) | ||
|
||
return super(DecisionUpdateView, self).form_valid(form) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hate to be that guy... But conventionally we place the committee before the rest of the refnum.
Sorry, should've clarified that in my original comment