-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(deps): bump slack-sdk from 3.16.0 to 3.18.3 (#602) Bumps [slack-sdk](https://github.com/slackapi/python-slack-sdk) from 3.16.0 to 3.18.3. - [Release notes](https://github.com/slackapi/python-slack-sdk/releases) - [Changelog](https://github.com/slackapi/python-slack-sdk/blob/main/docs-v2/changelog.html) - [Commits](slackapi/python-slack-sdk@v3.16.0...v3.18.3) --- updated-dependencies: - dependency-name: slack-sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ref(epost): Endret e-post (#607) Co-authored-by: Lea Raknes <[email protected]> * force sentry sdk version (#615) * fix(mail): celery mail lock (#619) * Delete mails instead of setting mail to "sent". * Lock mail rows that are being sent. * Fixed formatting * Remove sent tables before fields. * Do not use in mail send * fixed tests :nerd: * Added changelog * Fixed mail migration oopsie 😳 * chore(deps): update django-ordered-model requirement from ~=3.5 to ~=3.6 (#590) Updates the requirements on [django-ordered-model](https://github.com/django-ordered-model/django-ordered-model) to permit the latest version. - [Release notes](https://github.com/django-ordered-model/django-ordered-model/releases) - [Changelog](https://github.com/django-ordered-model/django-ordered-model/blob/master/CHANGES.md) - [Commits](django-ordered-model/django-ordered-model@3.5...3.6) --- updated-dependencies: - dependency-name: django-ordered-model dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tobias Rødahl Thingnes <[email protected]> * chore(deps): bump django from 4.0.4 to 4.1.2 (#618) Bumps [django](https://github.com/django/django) from 4.0.4 to 4.1.2. - [Release notes](https://github.com/django/django/releases) - [Commits](django/django@4.0.4...4.1.2) --- updated-dependencies: - dependency-name: django dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: norgor <[email protected]> * fix(notification): Avoid Slack as only channel when not connected (#625) * chore(deps): bump whitenoise from 6.1.0 to 6.2.0 (#592) Bumps [whitenoise](https://github.com/evansd/whitenoise) from 6.1.0 to 6.2.0. - [Release notes](https://github.com/evansd/whitenoise/releases) - [Changelog](https://github.com/evansd/whitenoise/blob/main/docs/changelog.rst) - [Commits](evansd/whitenoise@6.1.0...6.2.0) --- updated-dependencies: - dependency-name: whitenoise dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump django-filter from 21.1 to 22.1 (#595) Bumps [django-filter](https://github.com/carltongibson/django-filter) from 21.1 to 22.1. - [Release notes](https://github.com/carltongibson/django-filter/releases) - [Changelog](https://github.com/carltongibson/django-filter/blob/main/CHANGES.rst) - [Commits](carltongibson/django-filter@21.1...22.1) --- updated-dependencies: - dependency-name: django-filter dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * refactor(album): changed primary key from slug to id (#606) * changed primary key from slug to id * Update picture.py * changelog * reverted migration * created new migration * fixed migrations * fixed migrations * Delete Makefile.bak * removed unused import * Update CHANGELOG.md * added functions to re-add pictures * tried to fix * norbert fix * norbert fix v2 * norbert fix v3 * norbert fix v4 * adding uuid manually * new try at fix * new attempt * desperate * ... * desperation * removed .bak file * ... * might have fixed it * fix? * fix? * alhamdulillah! * i must have brain tumour * contemplating unspeakable things * chore(grammar): Added very important commas. (#629) * Added very important commas. * Add changelog entry * chore(grammar): Even more grammar fixes 🤓 (#631) * Even more grammar fixes :nerd: * Added entry to changelog * chore(readme): Improved readme! 🔧 (#633) Improved readme. * fix(django): add required files for Django 4.1 * Revert "fix(django): add required files for Django 4.1" This reverts commit 3de9965. * fix(django): django and django-rest-frameworks issues (#634) fix(django): downgrading Django version from 4.1.2 to 4.0.8 * docs(changelog): iterate changelog version (#636) Co-authored-by: trthingnes <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: learak <[email protected]> Co-authored-by: Lea Raknes <[email protected]> Co-authored-by: norgor <[email protected]> Co-authored-by: Callum Gran <[email protected]> Co-authored-by: Martin Clementz <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: trthingnes <[email protected]>
- Loading branch information
1 parent
d4e1f7b
commit 8817351
Showing
24 changed files
with
152 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,10 @@ | |
</p> | ||
|
||
|
||
<h1 align="center">LEPTON</h1> | ||
<h1 align="center">Lepton</h1> | ||
|
||
<h4 align="center"> | ||
TIHLDEs open source backend for <a href="https://tihlde.org">tihlde.org</a> - the organizations main web site. | ||
Open source backend for <a href="https://tihlde.org">TIHLDE's website.</a> | ||
</h4> | ||
|
||
<br/> | ||
|
@@ -84,22 +84,20 @@ The tests can be run with pytest by running `make test`. | |
To run with test coverage, run `make test args="--cov"`. | ||
|
||
## ❤ Contributing | ||
The Lepton backend is an open source project build on voluntary work. | ||
We are committed to a fully transparent development process | ||
and highly appreciate any contributions. | ||
Whether you are helping us fixing bugs, proposing new feature, improving our documentation | ||
or spreading the word - **we would love to have you as part of the community**. | ||
The Lepton backend is an open source project built on voluntary work. | ||
We are committed to a fully transparent development process, and highly appreciate any contributions. | ||
Whether you are helping us by fixing bugs, proposing new feature, improving our documentation, | ||
or simply spreading the word - **we would love to have you as part of our community**. | ||
|
||
## 🤝 Found a bug? Missing a specific feature? | ||
Feel free to file a new issue with a respective title and description | ||
on the the [tihlde/Lepton](https://github.com/tihlde/Lepton/issues) repository. | ||
If you already found a solution to your problem, we would love to review your pull request! | ||
in the [TIHLDE/Lepton](https://github.com/TIHLDE/Lepton/issues) repository. | ||
If you have already found a solution to your problem, we would love to review your pull request! | ||
We enforce the PEP-8 style guide with isort, black and flake8. | ||
Have a look at `setup.cfg` to find out more about our coding standards. | ||
|
||
## 📫 Contact | ||
Feel free to send us a message on our official [slack channel](https://tihlde.slack.com/archives/C01CJ0EQCFM). | ||
Of course you can always reach out to us directly at [email protected]. | ||
Feel free to send us a message on our official [slack channel](https://tihlde.slack.com/archives/C01CJ0EQCFM), or email us at [email protected]. | ||
|
||
## 📘 Licence | ||
The code in this project is licensed under MIT license. | ||
## 📘 License | ||
The code in this repository is licensed under the [MIT license](LICENSE.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
|
||
class MailAdmin(admin.ModelAdmin): | ||
list_filter = ( | ||
"sent", | ||
"users__user_id", | ||
"eta", | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from django.db import migrations | ||
|
||
|
||
def delete_sent(apps, schema_editor): | ||
Mail = apps.get_model("communication", "Mail") | ||
Mail.objects.filter(sent=True).delete() | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("communication", "0006_alter_mail_users"), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython(delete_sent), | ||
migrations.RemoveField( | ||
model_name="mail", | ||
name="sent", | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
) | ||
MAIL_INDEX = "[email protected]" if os.environ.get("PROD") else "[email protected]" | ||
MAIL_NOK_LEADER = ( | ||
"naeringslivminister@tihlde.org" | ||
"naeringslivsminister@tihlde.org" | ||
if os.environ.get("PROD") | ||
else "[email protected]" | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
app/gallery/migrations/0002_remove_picture_album_album_id_alter_album_slug.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Generated by Django 4.0.4 on 2022-09-29 17:05 | ||
|
||
from django.db import migrations, models | ||
import uuid | ||
|
||
albums = [] | ||
|
||
def save_pk(apps, schema_editor): | ||
Picture = apps.get_model('gallery', 'Picture') | ||
Album = apps.get_model('gallery', 'Album') | ||
|
||
for album in Album.objects.all(): | ||
pic_ids = [] | ||
album.id = uuid.uuid4() | ||
album.save() | ||
for picture in Picture.objects.filter(album=album): | ||
pic_ids.append(picture.id) | ||
|
||
albums.append({ | ||
'album_id': album.id, | ||
'pic_ids': pic_ids, | ||
}) | ||
|
||
def update_pk(apps, schema_editor): | ||
Picture = apps.get_model('gallery', 'Picture') | ||
Album = apps.get_model('gallery', 'Album') | ||
|
||
for album in albums: | ||
for pic_id in album.get('pic_ids'): | ||
pic = Picture.objects.get(id=pic_id) | ||
pic.album = Album.objects.get(id=album.get('album_id')) | ||
pic.save() | ||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('gallery', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='album', | ||
name='id', | ||
field=models.UUIDField(unique=True, null=True, default=None), | ||
), | ||
migrations.RunPython(save_pk), | ||
migrations.RemoveField( | ||
model_name='picture', | ||
name='album', | ||
), | ||
migrations.AlterField( | ||
model_name='album', | ||
name='slug', | ||
field=models.SlugField(), | ||
), | ||
migrations.AlterField( | ||
model_name='album', | ||
name='id', | ||
field=models.UUIDField(default=uuid.uuid4, null=False, editable=False, primary_key=True, serialize=False), | ||
), | ||
migrations.AddField( | ||
model_name='picture', | ||
name='album', | ||
field=models.ForeignKey(to='gallery.album', on_delete=models.SET_NULL, null=True), | ||
), | ||
migrations.RunPython(update_pk), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.