Skip to content

Commit 86cc6c2

Browse files
committed
added "other" field
1 parent b7be7e3 commit 86cc6c2

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Generated by Django 3.2.23 on 2025-05-11 16:49
2+
3+
import django.core.validators
4+
from django.db import migrations, models
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('applications', '0059_auto_20250511_1520'),
11+
]
12+
13+
operations = [
14+
migrations.AlterField(
15+
model_name='hackerapplication',
16+
name='dubious_type',
17+
field=models.CharField(choices=[('OK', 'Not dubious'), ('INVALID_CV', 'Invalid CV'), ('LATE_GRAD', 'Invalid graduation year'), ('NOT_STUDENT', 'Not a student'), ('INVALID_SCHOOL', 'Invalid school'), ('OTHER', 'Other')], default='OK', max_length=300),
18+
),
19+
]

applications/models/constants.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,13 @@
105105
DUBIOUS_GRADUATION_YEAR = 'LATE_GRAD'
106106
DUBIOUS_NOT_STUDENT = 'NOT_STUDENT'
107107
DUBIOUS_SCHOOL = 'INVALID_SCHOOL'
108+
DUBIOUS_OTHER = 'OTHER'
108109

109110
DUBIOUS_TYPES = [
110111
(DUBIOUS_NONE, 'Not dubious'),
111112
(DUBIOUS_CV, 'Invalid CV'),
112113
(DUBIOUS_GRADUATION_YEAR, 'Invalid graduation year'),
113114
(DUBIOUS_NOT_STUDENT, 'Not a student'),
114-
(DUBIOUS_SCHOOL, 'Invalid school')
115+
(DUBIOUS_SCHOOL, 'Invalid school'),
116+
(DUBIOUS_OTHER, 'Other')
115117
]

0 commit comments

Comments
 (0)