Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kalendar #171

Draft
wants to merge 30 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
77764da
minor formatting changes
CommanderStorm Apr 4, 2022
3e544d6
generified the logging and added a modification log to every db-object
CommanderStorm Apr 4, 2022
f36cc76
fixed typo: deparure_place is spelled with a t
CommanderStorm Apr 4, 2022
7d3d8f0
generified Semesters and ids (except fahrt.participant)
CommanderStorm Apr 4, 2022
9c4ce88
semester-reformating
CommanderStorm Apr 4, 2022
1d557fe
migrated fahrt.participant from an integer-based id to a uuid
CommanderStorm Apr 4, 2022
c38646f
changed datetime.datetime to timezone to stop this migration from com…
CommanderStorm Apr 3, 2022
303ffc2
Fixed SIM909 Remove reflexive assignment
CommanderStorm Apr 4, 2022
d8a1d24
Automated Change: updated pre-commit requirements
CommanderStorm Apr 1, 2022
f29a41a
Bump @popperjs/core from 2.11.2 to 2.11.4
dependabot[bot] Apr 1, 2022
47d51f3
Update django-stubs requirement from ~=1.9.0 to ~=1.10.1
dependabot[bot] Apr 1, 2022
52b7a4a
Update pillow requirement from ~=9.0.1 to ~=9.1.0
dependabot[bot] Apr 1, 2022
e561265
Update pylint requirement from ~=2.12.2 to ~=2.13.4
dependabot[bot] Apr 1, 2022
281cd40
Update types-python-dateutil requirement from ~=2.8.9 to ~=2.8.10
dependabot[bot] Apr 1, 2022
0bff5b6
Update pylint-django requirement from ~=2.5.2 to ~=2.5.3
dependabot[bot] Apr 1, 2022
d01d834
made mypy happy by adding more type-hints
CommanderStorm Apr 4, 2022
e63987b
made _make_hash_value not static because this caused issues in CI
CommanderStorm Apr 4, 2022
e13bada
Update mypy requirement from ~=0.931 to ~=0.942 (#148)
dependabot[bot] Apr 4, 2022
9c30983
Update pre-commit requirement from ~=2.17.0 to ~=2.18.1 (#149)
dependabot[bot] Apr 4, 2022
07a85ce
added the initial implementation of the calendar
CommanderStorm Mar 22, 2022
ad7afdc
migrated tutors to support the kalendar
CommanderStorm Mar 24, 2022
6610f9d
migrated settool_common to support the kalendar
CommanderStorm Mar 24, 2022
1ab8fab
moved BaseTaskEvent to kalendar
CommanderStorm Apr 1, 2022
7d4b856
merged the new modelbase into the kalendar draft
CommanderStorm Apr 4, 2022
041a60f
minor formatting fixes in migrations
CommanderStorm Apr 5, 2022
4002394
migrated fahrt to support the kalendar
CommanderStorm Apr 5, 2022
a87dea9
migrated guidedtours to support the kalendar
CommanderStorm Apr 5, 2022
417d5fd
guidedtours
CommanderStorm Apr 20, 2022
e79a36b
tutors
CommanderStorm Apr 20, 2022
cc7b312
kalendar
CommanderStorm Apr 20, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
args: [--fix=lf]
- id: requirements-txt-fixer
- repo: https://github.com/paulhfischer/pre-commit-hooks
rev: v1.2.39
rev: v1.2.40
hooks:
- id: format-general
- id: format-web
Expand All @@ -28,11 +28,11 @@ repos:
hooks:
- id: isort
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.2.1
rev: v2.2.2
hooks:
- id: add-trailing-comma
- repo: https://github.com/psf/black
rev: 22.1.0
rev: 22.3.0
hooks:
- id: black
language_version: python3
Expand Down
22 changes: 11 additions & 11 deletions bags/locale/de/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,13 @@ msgstr "E-Mail erfolgreich gesendet"
msgid "Promise"
msgstr "Zusage"

#: bags/models.py bags/templates/bags/bags_dashboard.html
#: bags/templates/bags/company/list_companys.html
#: bags/templates/bags/company/view_company.html
#: bags/templates/bags/maintenance/mail/send_mail.html
msgid "Contact again"
msgstr "Erneut kontaktieren"

#: bags/models.py bags/templates/bags/company/list_companys.html
#: bags/templates/bags/company/view_company.html
#: bags/templates/bags/maintenance/mail/del_mail.html
Expand All @@ -148,13 +155,6 @@ msgstr "Zusage"
msgid "Comment"
msgstr "Kommentar"

#: bags/models.py bags/templates/bags/bags_dashboard.html
#: bags/templates/bags/company/list_companys.html
#: bags/templates/bags/company/view_company.html
#: bags/templates/bags/maintenance/mail/send_mail.html
msgid "Contact again"
msgstr "Erneut kontaktieren"

#: bags/models.py
msgid "Giveaway-groups' name"
msgstr "Name der Giveaway-Gruppe"
Expand Down Expand Up @@ -185,10 +185,6 @@ msgstr "Jede {every_x_bags}te Tüte"
msgid "{per_bag_count} every bag"
msgstr "{per_bag_count} jede Tüte"

#: bags/models.py
msgid "Giveaway-description/comment"
msgstr "Werbegeschenk-Beschreibung/Kommentar"

#: bags/models.py bags/templates/bags/bags_dashboard.html
#: bags/templates/bags/giveaways/giveaway/list/arrival/confirm_giveaways_arrivals.html
#: bags/templates/bags/giveaways/giveaway/list/arrival/list_giveaways_arrivals.html
Expand All @@ -213,6 +209,10 @@ msgstr "Ankunftszeit"
msgid "Arrived"
msgstr "Angekommen"

#: bags/models.py
msgid "Giveaway-description/comment"
msgstr "Werbegeschenk-Beschreibung/Kommentar"

#: bags/templates/bags/bags_dashboard.html bags/templates/bags/base_bags.html
msgid "Dashboard"
msgstr "Dashboard"
Expand Down
5 changes: 1 addition & 4 deletions bags/migrations/0004_auto_20160531_1312.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ class Migration(migrations.Migration):
"permissions": (("view_companies", "Can view and edit the companies"),),
},
),
migrations.RemoveField(
model_name="company",
name="zusage",
),
migrations.RemoveField(model_name="company", name="zusage"),
migrations.AddField(
model_name="company",
name="promise",
Expand Down
5 changes: 1 addition & 4 deletions bags/migrations/0008_auto_20160608_1212.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ class Migration(migrations.Migration):
]

operations = [
migrations.RemoveField(
model_name="company",
name="contact",
),
migrations.RemoveField(model_name="company", name="contact"),
migrations.AddField(
model_name="company",
name="contact_firstname",
Expand Down
5 changes: 1 addition & 4 deletions bags/migrations/0017_remove_mail_semester.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,5 @@ class Migration(migrations.Migration):

operations = [
migrations.RunPython(subject_includes_semester),
migrations.RemoveField(
model_name="mail",
name="semester",
),
migrations.RemoveField(model_name="mail", name="semester"),
]
10 changes: 2 additions & 8 deletions bags/migrations/0021_auto_20210326_1632.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,8 @@ class Migration(migrations.Migration):
]

operations = [
migrations.RemoveField(
model_name="giveaway",
name="every_x_bags",
),
migrations.RemoveField(
model_name="giveaway",
name="per_bag_count",
),
migrations.RemoveField(model_name="giveaway", name="every_x_bags"),
migrations.RemoveField(model_name="giveaway", name="per_bag_count"),
migrations.AddField(
model_name="giveaway",
name="item_count",
Expand Down
5 changes: 1 addition & 4 deletions bags/migrations/0023_auto_20210330_1154.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,5 @@ class Migration(migrations.Migration):
),
),
migrations.RunPython(keep_giveaway_data),
migrations.RemoveField(
model_name="giveaway",
name="name",
),
migrations.RemoveField(model_name="giveaway", name="name"),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Generated by Django 4.0.3 on 2022-04-01 13:10

import django.utils.timezone
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("bags", "0025_auto_20220321_1902"),
]

operations = [
migrations.AddField(
model_name="bagsettings",
name="created_at",
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now),
preserve_default=False,
),
migrations.AddField(
model_name="bagsettings",
name="updated_at",
field=models.DateTimeField(auto_now=True),
),
migrations.AddField(
model_name="company",
name="created_at",
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now),
preserve_default=False,
),
migrations.AddField(
model_name="company",
name="updated_at",
field=models.DateTimeField(auto_now=True),
),
migrations.AddField(
model_name="giveaway",
name="created_at",
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now),
preserve_default=False,
),
migrations.AddField(
model_name="giveaway",
name="updated_at",
field=models.DateTimeField(auto_now=True),
),
migrations.AddField(
model_name="giveawaygroup",
name="created_at",
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now),
preserve_default=False,
),
migrations.AddField(
model_name="giveawaygroup",
name="updated_at",
field=models.DateTimeField(auto_now=True),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Generated by Django 4.0.3 on 2022-04-01 16:16

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("settool_common", "0018_alter_anonymisationlog_semester"),
("bags", "0026_bagsettings_created_at_bagsettings_updated_at_and_more"),
]

operations = [
migrations.AlterField(
model_name="company",
name="semester",
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="settool_common.semester",
verbose_name="Semester",
),
),
migrations.AlterField(
model_name="giveawaygroup",
name="semester",
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="settool_common.semester",
verbose_name="Semester",
),
),
]
Loading