bookwyrm/bookwyrm
Bart Schuurmans 0d621b68e0 Reorder operations in save() overrides
Accessing many-to-many relations before saving is no longer allowed.

Reorder all operations consistently:
1. Validations
2. Modify own fields
3. Perform save by calling super().save()
4. Modify related objects and clear caches

Especially clearing caches should be done after actually saving, otherwise the old data can be
re-added immediately by another request before the new data is written.
2024-04-25 10:12:30 +02:00
..
activitypub Merge pull request #3303 from MaggieFero/main 2024-03-13 15:28:54 -07:00
connectors Support http:// protocol in BookWyrm connector 2024-04-24 15:30:47 +02:00
forms Allow serving BookWyrm on a non-standard port 2024-04-24 15:30:47 +02:00
importers stop pylint constantly whining 2023-10-28 06:51:26 +11:00
isbn Add timeout to isbn.py 2024-03-01 19:58:11 -08:00
management BookDataModel: add dry_run argument to merge_into 2024-03-23 19:28:57 +01:00
middleware middleware for displaying 413 page 2023-11-18 22:10:36 +11:00
migrations Add migration resulting from Django 4.2 upgrade 2024-04-25 10:12:29 +02:00
models Reorder operations in save() overrides 2024-04-25 10:12:30 +02:00
static Adding FictionBook format ("FB2", "FB3") to autocomplete options in "Get a copy" block. 2024-01-25 01:50:10 +03:00
telemetry Added mypy to scripts and workflow, and some first annotations for celerywyrm 2023-07-22 13:27:43 +02:00
templates Construct absolute URLs with the correct protocol and port 2024-04-24 15:30:47 +02:00
templatetags Allow serving BookWyrm on a non-standard port 2024-04-24 15:30:47 +02:00
tests Include the correct protocol and port in remote IDs 2024-04-24 15:35:19 +02:00
utils Construct absolute URLs with the correct protocol and port 2024-04-24 15:30:47 +02:00
views Construct absolute URLs with the correct protocol and port 2024-04-24 15:30:47 +02:00
__init__.py
activitystreams.py Remove optimizations with adverse effects 2024-04-04 13:47:56 +02:00
admin.py
apps.py Font download: log the exact error 2024-03-18 20:34:47 +01:00
book_search.py Merge branch 'main' into let-a-user-search-within-their-books 2023-12-14 10:25:05 -08:00
context_processors.py Python formatting 2022-03-01 11:39:08 -08:00
emailing.py Construct absolute URLs with the correct protocol and port 2024-04-24 15:30:47 +02:00
imagegenerators.py Fix lint 2021-06-19 19:44:14 +02:00
lists_stream.py Switch from priority queues to function-based queues 2023-07-20 12:25:30 -04:00
preview_images.py Fix resource leaks 2024-03-29 20:14:10 +01:00
redis_store.py Merge pull request #2784 from WesleyAC/add-status-cache-get-audience 2023-04-07 06:43:04 -07:00
settings.py Use new STORAGES setting 2024-04-25 10:12:30 +02:00
signatures.py fix tests and formatting 2023-04-13 22:33:54 +10:00
status.py Catches missing reference to previous sanitizer 2022-07-04 13:24:13 -07:00
storage_backends.py oops 2024-01-14 12:19:59 +11:00
suggested_users.py hide instance actor from users 2023-11-20 12:17:52 +11:00
tasks.py Switch from priority queues to function-based queues 2023-07-20 12:25:30 -04:00
thumbnail_generation.py Update thumbnail_generation.py 2022-01-08 17:54:03 +01:00
urls.py Merge branch 'main' into feat/api/oauth 2024-03-31 12:41:12 -07:00
wsgi.py