Skip to content
Snippets Groups Projects
Verified Commit 89379eae authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Reformat

parent 69fa177d
No related branches found
No related tags found
No related merge requests found
Pipeline #3210 failed
......@@ -6,13 +6,15 @@ from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('alsijil', '0003_extra_mark'),
("alsijil", "0003_extra_mark"),
]
operations = [
migrations.AddField(
model_name='lessondocumentation',
name='group_note',
field=models.CharField(blank=True, max_length=200, verbose_name='Group note'),
model_name="lessondocumentation",
name="group_note",
field=models.CharField(
blank=True, max_length=200, verbose_name="Group note"
),
),
]
......@@ -98,7 +98,9 @@ class LessonDocumentation(ExtensibleModel):
topic = models.CharField(verbose_name=_("Lesson topic"), max_length=200, blank=True)
homework = models.CharField(verbose_name=_("Homework"), max_length=200, blank=True)
group_note = models.CharField(verbose_name=_("Group note"), max_length=200, blank=True)
group_note = models.CharField(
verbose_name=_("Group note"), max_length=200, blank=True
)
class Meta:
verbose_name = _("Lesson documentation")
......
......@@ -395,7 +395,11 @@ def full_register_group(request: HttpRequest, id_: int) -> HttpResponse:
persons = persons.annotate(
**{
extra_mark.count_label: Count(
"personal_notes", filter=Q(personal_notes__extra_marks=extra_mark,personal_notes__lesson_period__lesson__validity__school_term=current_school_term),
"personal_notes",
filter=Q(
personal_notes__extra_marks=extra_mark,
personal_notes__lesson_period__lesson__validity__school_term=current_school_term,
),
)
}
)
......
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