Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Alsijil
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-App-Alsijil
Commits
1792cf1f
Commit
1792cf1f
authored
1 year ago
by
Hangzhi Yu
Browse files
Options
Downloads
Patches
Plain Diff
Add teachers field to documentation
parent
9ea0ed66
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!352
Draft: Resolve "Add dialog with each lesson's students"
,
!350
Resolve "Add simple course book list"
,
!339
Draft: Resolve "Migrate to new data model"
Pipeline
#175574
failed
1 year ago
Stage: prepare
Stage: test
Stage: build
Stage: publish
Stage: docker
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aleksis/apps/alsijil/migrations/0022_documentation_teachers.py
+24
-0
24 additions, 0 deletions
...is/apps/alsijil/migrations/0022_documentation_teachers.py
aleksis/apps/alsijil/models.py
+4
-0
4 additions, 0 deletions
aleksis/apps/alsijil/models.py
with
28 additions
and
0 deletions
aleksis/apps/alsijil/migrations/0022_documentation_teachers.py
0 → 100644
+
24
−
0
View file @
1792cf1f
# Generated by Django 4.2.9 on 2024-03-16 00:59
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
"
core
"
,
"
0061_remove_group_additional_fields
"
),
(
"
alsijil
"
,
"
0021_participationstatus
"
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
"
documentation
"
,
name
=
"
teachers
"
,
field
=
models
.
ManyToManyField
(
blank
=
True
,
null
=
True
,
related_name
=
"
documentations_as_teacher
"
,
to
=
"
core.person
"
,
verbose_name
=
"
Teachers
"
,
),
),
]
This diff is collapsed.
Click to expand it.
aleksis/apps/alsijil/models.py
+
4
−
0
View file @
1792cf1f
...
...
@@ -474,6 +474,10 @@ class Documentation(CalendarEvent):
Subject
,
models
.
PROTECT
,
related_name
=
"
+
"
,
blank
=
True
,
null
=
True
,
verbose_name
=
_
(
"
Subject
"
)
)
teachers
=
models
.
ManyToManyField
(
"
core.Person
"
,
related_name
=
"
documentations_as_teacher
"
,
blank
=
True
,
null
=
True
,
verbose_name
=
_
(
"
Teachers
"
)
)
topic
=
models
.
CharField
(
verbose_name
=
_
(
"
Lesson Topic
"
),
max_length
=
255
,
blank
=
True
)
homework
=
models
.
CharField
(
verbose_name
=
_
(
"
Homework
"
),
max_length
=
255
,
blank
=
True
)
group_note
=
models
.
CharField
(
verbose_name
=
_
(
"
Group Note
"
),
max_length
=
255
,
blank
=
True
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment