Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor 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-Core
Commits
a2aaf93a
Verified
Commit
a2aaf93a
authored
4 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of edugit.org:AlekSIS/official/AlekSIS
parents
c4bd7302
f6f99dc9
No related branches found
No related tags found
No related merge requests found
Pipeline
#1968
failed
4 years ago
Stage: test
Stage: build
Stage: deploy
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+0
-1
0 additions, 1 deletion
.gitlab-ci.yml
aleksis/core/mixins.py
+6
-6
6 additions, 6 deletions
aleksis/core/mixins.py
apps/official/AlekSIS-App-Chronos
+1
-1
1 addition, 1 deletion
apps/official/AlekSIS-App-Chronos
pyproject.toml
+1
-1
1 addition, 1 deletion
pyproject.toml
with
8 additions
and
9 deletions
.gitlab-ci.yml
+
0
−
1
View file @
a2aaf93a
...
...
@@ -45,7 +45,6 @@ lint:
stage
:
test
script
:
-
tox -e lint,security
allow_failure
:
true
build_dist
:
stage
:
build
...
...
This diff is collapsed.
Click to expand it.
aleksis/core/mixins.py
+
6
−
6
View file @
a2aaf93a
...
...
@@ -196,8 +196,7 @@ class ExtensibleModel(models.Model, metaclass=_ExtensibleModelBase):
@classmethod
def
syncable_fields
(
cls
)
->
List
[
models
.
Field
]:
"""
Collect all fields that can be synced on a model
"""
"""
Collect all fields that can be synced on a model.
"""
return
[
field
for
field
in
cls
.
_meta
.
fields
...
...
@@ -206,18 +205,19 @@ class ExtensibleModel(models.Model, metaclass=_ExtensibleModelBase):
@classmethod
def
syncable_fields_choices
(
cls
)
->
Tuple
[
Tuple
[
str
,
str
]]:
"""
Collect all fields that can be synced on a model
"""
"""
Collect all fields that can be synced on a model.
"""
return
tuple
(
[(
field
.
name
,
field
.
verbose_name
or
field
.
name
)
for
field
in
cls
.
syncable_fields
()]
)
@classmethod
def
syncable_fields_choices_lazy
(
cls
)
->
Callable
[[],
Tuple
[
Tuple
[
str
,
str
]]]:
"""
Collect all fields that can be synced on a model
"""
"""
Collect all fields that can be synced on a model.
"""
return
lazy
(
cls
.
syncable_fields_choices
,
tuple
)
def
__str__
(
self
)
->
str
:
return
f
"
{
self
.
__class__
.
meta
.
name
}
{
self
.
pk
}
"
class
Meta
:
abstract
=
True
...
...
This diff is collapsed.
Click to expand it.
AlekSIS-App-Chronos
@
bc3d5ef8
Compare
b3b28861
...
bc3d5ef8
Subproject commit b
3b28861982f952d4f0f6ba33c7a5866541e0087
Subproject commit b
c3d5ef8d4294919ec28109b61dced73f0351c6a
This diff is collapsed.
Click to expand it.
pyproject.toml
+
1
−
1
View file @
a2aaf93a
...
...
@@ -9,7 +9,7 @@ include = ["CHANGELOG.rst", "CODE_OF_CONDUCT.rst", "CONTRIBUTING.rst", "LICENCE.
description
=
"AlekSIS (School Information System) — Core"
authors
=
[
"Dominik George <dominik.george@teckids.org>"
,
"Julian Leucker <leuckeju@katharineum.de>"
,
"mirabilos <thorsten.glaser@teckids.org>"
,
"Frank Poetzsch-Heffter <p-h@katharineum.de>"
,
"Tom Teichler <tom.teichler@teckids.org>"
,
"Jonathan Weth <wethjo@katharineum.de>"
,
"Hangzhi Yu <yuha@katharineum.de>"
]
maintainers
=
[
"Jonathan Weth <wethjo@katharineum.de>"
,
"Dominik George <dominik.george@teckids.org>"
}
maintainers
=
[
"Jonathan Weth <wethjo@katharineum.de>"
,
"Dominik George <dominik.george@teckids.org>"
]
license
=
"EUPL-1.2-or-later"
homepage
=
"https://aleksis.org/"
repository
=
"https://edugit.org/AlekSIS/official/AlekSIS"
...
...
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