Skip to content
Snippets Groups Projects
Commit 5d26ce5b authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch 'schild-nrw-teachers-email' into 'master'

Schild nrw teachers email

See merge request !100
parents 1a4c4ed3 87a069f8
No related branches found
No related tags found
1 merge request!100Schild nrw teachers email
Pipeline #63326 failed
Pipeline: AlekSIS

#63342

    ...@@ -9,6 +9,11 @@ and this project adheres to `Semantic Versioning`_. ...@@ -9,6 +9,11 @@ and this project adheres to `Semantic Versioning`_.
    Unreleased Unreleased
    ---------- ----------
    Changed
    ~~~~~~~
    * Use home email as fallback in SchILD NRW template if a teachers' work email is empty
    `2.2.1` - 2022-02-03 `2.2.1` - 2022-02-03
    -------------------- --------------------
    ......
    ...@@ -28,6 +28,7 @@ Licence ...@@ -28,6 +28,7 @@ Licence
    Copyright © 2020, 2021 Jonathan Weth <dev@jonathanweth.de> Copyright © 2020, 2021 Jonathan Weth <dev@jonathanweth.de>
    Copyright © 2019 mirabilos <thorsten.glaser@teckids.org> Copyright © 2019 mirabilos <thorsten.glaser@teckids.org>
    Copyright © 2019 Tom Teichler <tom.teichler@teckids.org> Copyright © 2019 Tom Teichler <tom.teichler@teckids.org>
    Copyright © 2022 magicfelix <felix@felix-zauberer.de>
    Licenced under the EUPL, version 1.2 or later, by Teckids e.V. (Bonn, Germany). Licenced under the EUPL, version 1.2 or later, by Teckids e.V. (Bonn, Germany).
    ......
    ...@@ -18,6 +18,7 @@ class CSVImportConfig(AppConfig): ...@@ -18,6 +18,7 @@ class CSVImportConfig(AppConfig):
    ([2020, 2021], "Jonathan Weth", "dev@jonathanweth.de"), ([2020, 2021], "Jonathan Weth", "dev@jonathanweth.de"),
    ([2019], "mirabilos", "thorsten.glaser@teckids.org"), ([2019], "mirabilos", "thorsten.glaser@teckids.org"),
    ([2019], "Tom Teichler", "tom.teichler@teckids.org"), ([2019], "Tom Teichler", "tom.teichler@teckids.org"),
    ([2022], "magicfelix", "felix@felix-zauberer.de"),
    ) )
    def ready(self): def ready(self):
    ......
    ...@@ -223,12 +223,18 @@ schild_nrw_teachers: ...@@ -223,12 +223,18 @@ schild_nrw_teachers:
    - ignore - ignore
    - ignore - ignore
    - ignore - ignore
    - field_type: email - field_type: ignore
    column_name: email_work
    priority: 10 priority: 10
    - field_type: phone_number - field_type: phone_number
    db_field: mobile_number db_field: mobile_number
    - phone_number - phone_number
    - ignore - field_type: ignore
    column_name: email_home
    - street_housenumber - street_housenumber
    - postal_code - postal_code
    - place - place
    - field_type: email
    virtual: true
    template: |
    {{ email_work|default:email_home }}
    ...@@ -43,7 +43,7 @@ tqdm = "^4.62.3" ...@@ -43,7 +43,7 @@ tqdm = "^4.62.3"
    chardet = "^4.0.0" chardet = "^4.0.0"
    [tool.poetry.dev-dependencies] [tool.poetry.dev-dependencies]
    aleksis-builddeps = "^6" aleksis-builddeps = "*"
    [tool.poetry.plugins."aleksis.app"] [tool.poetry.plugins."aleksis.app"]
    csv_import = "aleksis.apps.csv_import.apps:CSVImportConfig" csv_import = "aleksis.apps.csv_import.apps:CSVImportConfig"
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment