You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mailu/core/admin/mailu
bors[bot] 9975a793fe
Merge #2458
2458: Fix: Don't update updated_at on quota_bytes_used change r=mergify[bot] a=DjVinnii

## What type of PR?

bug-fix

## What does this PR do?

This PR makes sure that the `updated_at` field is not updated when `quota_bytes_used` is updated. All other updates to the `User` model still updates the `updated_at` field. 

This is done by explicitly using an method in the `Base` class triggering [`flag_modified`][url-flag-modified].

### Related issue(s)
- closes #1363

## Prerequisites
Before we can consider review and merge, please make sure the following list is done and checked.
If an entry in not applicable, you can check it or remove it from the list.

- [ ] In case of feature or enhancement: documentation updated accordingly
- [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file.

<!-- LINKS-->
[url-flag-modified]: https://docs.sqlalchemy.org/en/14/orm/session_api.html#sqlalchemy.orm.attributes.flag_modified


Co-authored-by: Vincent Kling <v.kling@vinniict.nl>
2 years ago
..
internal Merge #2458 2 years ago
sso supply missing fields argument 3 years ago
translations Fix a bunch of typos 2 years ago
ui Fix a bunch of typos 2 years ago
__init__.py added localized date output 3 years ago
configuration.py Introduce TLS_PERMISSIVE for port 25 2 years ago
debug.py update werkzeug to 1.x 3 years ago
dkim.py Upgrading to a 2048-bit DKIM key 5 years ago
limiter.py Fix 2125 3 years ago
manage.py Feature: Marking "Read" spam mails 3 years ago
models.py Rename flag_updated_at_as_modified to dont_change_updated_at 2 years ago
schemas.py Fix a bunch of typos 2 years ago
utils.py Fix a bunch of typos 2 years ago