SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit ebf3d28b authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Remove deprecated `unavailable` status option from Readiness

parent f3dbc1b4
No related branches found
No related tags found
No related merge requests found
......@@ -16,9 +16,6 @@ class ReadinessQuerySet(models.QuerySet):
def too_busy(self):
return self.filter(status=self.model.STATUS_TOO_BUSY)
def on_vacation(self):
return self.filter(status=self.model.STATUS_ON_VACATION)
def not_interested(self):
return self.filter(status=self.model.STATUS_NOT_INTERESTED)
......
# Generated by Django 3.2.16 on 2023-01-24 10:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('submissions', '0140_alter_readiness_status'),
]
operations = [
migrations.AlterField(
model_name='readiness',
name='status',
field=models.CharField(choices=[('perhaps_later', 'Perhaps later (if nobody else does)'), ('could_if_transferred', 'I could (but only if transferred to lower journal)'), ('too_busy', "Interesting, but I'm currently too busy"), ('not_interested', "I won't: I'm not interested enough"), ('desk_reject', "I won't, and vote for desk rejection")], max_length=32),
),
]
......@@ -16,7 +16,6 @@ class Readiness(models.Model):
STATUS_PERHAPS_LATER = "perhaps_later"
STATUS_COULD_IF_TRANSFERRED = "could_if_transferred"
STATUS_TOO_BUSY = "too_busy"
STATUS_UNAVAILABLE = "unavailable"
STATUS_NOT_INTERESTED = "not_interested"
STATUS_DESK_REJECT = "desk_reject"
STATUS_CHOICES = (
......@@ -26,7 +25,6 @@ class Readiness(models.Model):
"I could (but only if transferred to lower journal)",
),
(STATUS_TOO_BUSY, "Interesting, but I'm currently too busy"),
(STATUS_UNAVAILABLE, "I'm currently unavailable"),
(STATUS_NOT_INTERESTED, "I won't: I'm not interested enough"),
(STATUS_DESK_REJECT, "I won't, and vote for desk rejection"),
)
......
......@@ -22,6 +22,7 @@
<tr>
<th>Fellow</th>
<th>Status</th>
<th>Currently<br>available</th>
<th>Qualification</th>
{% if "edadmin" in user_roles or "active_senior_fellow" in user_roles %}
<th>Competing<br>interests</th>
......@@ -37,6 +38,7 @@
<tr>
<td>{{ fellowship.contributor }}</td>
<td>{{ fellowship.get_status_display }}</td>
<td>{% if fellowship.contributor.is_currently_available %}<span class="text-success">{% include "bi/check-square-fill.html" %}</span>{% else %}<span class="text-danger">{% include "bi/x-square-fill.html" %}</span>{% endif %}</td>
<td>{% get_fellow_qualification_expertise_level_display submission fellowship %}</td>
{% if "edadmin" in user_roles or "active_senior_fellow" in user_roles %}
<td>
......
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