Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Chronos
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-Chronos
Commits
e0cd5ba3
Verified
Commit
e0cd5ba3
authored
5 years ago
by
Tom Teichler
Browse files
Options
Downloads
Patches
Plain Diff
Use right seperator in accessors. Advances BiscuIT-ng#118.
parent
de052f91
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!25
Use right seperator in accessors. Closes BiscuIT-ng#118.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
biscuit/apps/chronos/tables.py
+6
-6
6 additions, 6 deletions
biscuit/apps/chronos/tables.py
with
6 additions
and
6 deletions
biscuit/apps/chronos/tables.py
+
6
−
6
View file @
e0cd5ba3
...
...
@@ -27,10 +27,10 @@ class LessonsTable(tables.Table):
attrs
=
{
"
class
"
:
"
table table-striped table-bordered table-hover table-responsive-xl
"
}
row_attrs
=
{
"
class
"
:
_css_class_from_lesson_state
}
period__period
=
tables
.
Column
(
accessor
=
"
period
.
period
"
)
lesson__groups
=
tables
.
Column
(
accessor
=
"
lesson
.
group_names
"
,
verbose_name
=
_
(
"
Groups
"
))
lesson__teachers
=
tables
.
Column
(
accessor
=
"
lesson
.
teacher_names
"
,
verbose_name
=
_
(
"
Teachers
"
))
lesson__subject
=
tables
.
Column
(
accessor
=
"
lesson
.
subject
"
)
period__period
=
tables
.
Column
(
accessor
=
"
period
__
period
"
)
lesson__groups
=
tables
.
Column
(
accessor
=
"
lesson
__
group_names
"
,
verbose_name
=
_
(
"
Groups
"
))
lesson__teachers
=
tables
.
Column
(
accessor
=
"
lesson
__
teacher_names
"
,
verbose_name
=
_
(
"
Teachers
"
))
lesson__subject
=
tables
.
Column
(
accessor
=
"
lesson
__
subject
"
)
room
=
tables
.
Column
(
accessor
=
"
room
"
)
edit_substitution
=
tables
.
LinkColumn
(
"
edit_substitution
"
,
args
=
[
A
(
"
id
"
),
A
(
"
_week
"
)],
text
=
_
(
"
Substitution
"
)
...
...
@@ -43,10 +43,10 @@ class SubstitutionsTable(tables.Table):
lesson_period
=
tables
.
Column
(
verbose_name
=
_
(
"
Lesson
"
))
lesson__groups
=
tables
.
Column
(
accessor
=
"
lesson_period
.
lesson
.
group_names
"
,
verbose_name
=
_
(
"
Groups
"
)
accessor
=
"
lesson_period
__
lesson
__
group_names
"
,
verbose_name
=
_
(
"
Groups
"
)
)
lesson__teachers
=
tables
.
Column
(
accessor
=
"
lesson_period
.
get_teacher_names
"
,
verbose_name
=
_
(
"
Teachers
"
)
accessor
=
"
lesson_period
__
get_teacher_names
"
,
verbose_name
=
_
(
"
Teachers
"
)
)
lesson__subject
=
tables
.
Column
(
accessor
=
"
subject
"
)
room
=
tables
.
Column
(
accessor
=
"
room
"
)
...
...
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