Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-CSVImport
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-CSVImport
Commits
15b995ab
Commit
15b995ab
authored
3 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Plain Diff
Merge branch 'prepare-release-2.0rc2' into 'release/2.0'
Prepare release 2.0rc2 See merge request
!54
parents
cac6613d
e0de2b7d
No related branches found
No related tags found
1 merge request
!54
Prepare release 2.0rc2
Pipeline
#24352
passed
3 years ago
Stage: test
Stage: build
Stage: publish
Changes
4
Pipelines
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CHANGELOG.rst
+10
-0
10 additions, 0 deletions
CHANGELOG.rst
aleksis/apps/csv_import/field_types.py
+6
-3
6 additions, 3 deletions
aleksis/apps/csv_import/field_types.py
poetry.lock
+310
-309
310 additions, 309 deletions
poetry.lock
pyproject.toml
+1
-1
1 addition, 1 deletion
pyproject.toml
with
327 additions
and
313 deletions
CHANGELOG.rst
+
10
−
0
View file @
15b995ab
...
...
@@ -6,6 +6,14 @@ All notable changes to this project will be documented in this file.
The format is based on `Keep a Changelog`_,
and this project adheres to `Semantic Versioning`_.
`2.0rc2`_ - 2021-07-23
----------------------
Fixed
~~~~~
* Drop usage of no longer existing method ``get_subject_by_short_name``.
`2.0rc1`_ - 2021-06-23
----------------------
...
...
@@ -74,3 +82,5 @@ Fixed
.. _1.0a2: https://edugit.org/Teckids/AlekSIS/AlekSIS-App-CSVImport/-/tags/1.0a2
.. _2.0b0: https://edugit.org/Teckids/AlekSIS/AlekSIS-App-CSVImport/-/tags/2.0b0
.. _2.0b1: https://edugit.org/Teckids/AlekSIS/AlekSIS-App-CSVImport/-/tags/2.0b1
.. _2.0rc1: https://edugit.org/Teckids/AlekSIS/AlekSIS-App-CSVImport/-/tags/2.0rc1
.. _2.0rc2: https://edugit.org/Teckids/AlekSIS/AlekSIS-App-CSVImport/-/tags/2.0rc2
This diff is collapsed.
Click to expand it.
aleksis/apps/csv_import/field_types.py
+
6
−
3
View file @
15b995ab
...
...
@@ -325,9 +325,12 @@ class GroupSubjectByShortNameFieldType(ProcessFieldType):
models
=
[
Group
]
def
process
(
self
,
instance
:
Model
,
value
):
subject
=
get_subject_by_short_name
(
value
)
instance
.
subject
=
subject
instance
.
save
()
with_chronos
=
apps
.
is_installed
(
"
aleksis.apps.chronos
"
)
if
with_chronos
:
Subject
=
apps
.
get_model
(
"
chronos
"
,
"
Subject
"
)
subject
,
__
=
Subject
.
objects
.
get_or_create
(
short_name
=
value
,
defaults
=
{
"
name
"
:
value
})
instance
.
subject
=
subject
instance
.
save
()
@field_type_registry.register
...
...
This diff is collapsed.
Click to expand it.
poetry.lock
+
310
−
309
View file @
15b995ab
This diff is collapsed.
Click to expand it.
pyproject.toml
+
1
−
1
View file @
15b995ab
[tool.poetry]
name
=
"AlekSIS-App-CSVImport"
version
=
"2.0rc
1
"
version
=
"2.0rc
2
"
packages
=
[
{
include
=
"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