Skip to content

Commit 50b72c9

Browse files
chore: change help text for always_allow_students; add migration
1 parent e820641 commit 50b72c9

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Generated by Django 5.1.3 on 2026-02-22 19:01
2+
3+
import django.db.models.deletion
4+
from django.conf import settings
5+
from django.db import migrations, models
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
('sport', '0131_group_allowed_education_level'),
12+
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
13+
]
14+
15+
operations = [
16+
migrations.AddField(
17+
model_name='group',
18+
name='always_allow_students',
19+
field=models.ManyToManyField(blank=True, help_text='List of students that are always included in sport complex access lists on top of general checkins list. Useful for specifying main team members.', related_name='always_allow_groups', to='sport.student'),
20+
),
21+
migrations.AlterField(
22+
model_name='attendance',
23+
name='student',
24+
field=models.ForeignKey(limit_choices_to=models.Q(('student_status__name', 'Normal'), models.Q(('medical_group__name', "Medical checkup wasn't passed"), _negated=True)), on_delete=django.db.models.deletion.CASCADE, to='sport.student'),
25+
),
26+
migrations.AlterField(
27+
model_name='student',
28+
name='user',
29+
field=models.OneToOneField(limit_choices_to=models.Q(('groups__verbose_name', 'Students'), ('groups__verbose_name', 'CollegeStudents'), _connector='OR'), on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL),
30+
),
31+
]

adminpage/sport/models/group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Group(models.Model):
5151
'Student',
5252
related_name='always_allow_groups',
5353
blank=True,
54-
help_text='List of students that are always allowed to attend classes.'
54+
help_text='List of students that are always included in sport complex access lists on top of general checkins list. Useful for specifying main team members.'
5555
)
5656

5757
class Meta:

0 commit comments

Comments
 (0)