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
2d153af2
Commit
2d153af2
authored
1 year ago
by
magicfelix
Browse files
Options
Downloads
Patches
Plain Diff
Fix field references
parent
5bc38ebe
No related branches found
No related tags found
1 merge request
!350
Resolve "Add simple course book list"
Pipeline
#181018
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/models.py
+2
-2
2 additions, 2 deletions
aleksis/apps/alsijil/models.py
aleksis/apps/alsijil/schema/documentation.py
+2
-0
2 additions, 0 deletions
aleksis/apps/alsijil/schema/documentation.py
with
4 additions
and
2 deletions
aleksis/apps/alsijil/models.py
+
2
−
2
View file @
2d153af2
...
...
@@ -558,7 +558,7 @@ class Documentation(CalendarEvent):
continue
event_reference_obj
=
event
[
"
REFERENCE_OBJECT
"
]
existing_documentations
=
event_reference_obj
.
documentation
.
filter
(
existing_documentations
=
event_reference_obj
.
amended_by
.
filter
(
datetime_start
=
event
[
"
DTSTART
"
].
dt
,
datetime_end
=
event
[
"
DTEND
"
].
dt
,
)
...
...
@@ -635,7 +635,7 @@ class ParticipationStatus(CalendarEvent):
)
def
__str__
(
self
)
->
str
:
return
f
"
{
self
.
documentation
}
,
{
self
.
person
}
"
return
f
"
{
self
.
related_
documentation
}
,
{
self
.
person
}
"
class
Meta
:
verbose_name
=
_
(
"
Participation Status
"
)
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/alsijil/schema/documentation.py
+
2
−
0
View file @
2d153af2
...
...
@@ -10,6 +10,7 @@ from reversion import create_revision, set_comment, set_user
from
aleksis.apps.alsijil.util.predicates
import
can_edit_documentation
,
is_in_allowed_time_range
from
aleksis.apps.chronos.models
import
LessonEvent
from
aleksis.apps.chronos.schema
import
LessonEventType
from
aleksis.apps.cursus.models
import
Subject
from
aleksis.apps.cursus.schema
import
CourseType
,
SubjectType
from
aleksis.core.models
import
Person
...
...
@@ -45,6 +46,7 @@ class DocumentationType(PermissionsTypeMixin, DjangoFilterMixin, DjangoObjectTyp
}
course
=
graphene
.
Field
(
CourseType
,
required
=
False
)
amends
=
graphene
.
Field
(
lambda
:
LessonEventType
,
required
=
False
)
subject
=
graphene
.
Field
(
SubjectType
,
required
=
False
)
future_notice
=
graphene
.
Boolean
(
required
=
False
)
...
...
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