Commit graph

347 commits

Author SHA1 Message Date
Philipp Thumfart
c908b05740
Added missing logic to reset multi select (#659)
Some checks failed
Docs / docs (push) Has been cancelled
Test / ruff-format (push) Has been cancelled
Test / ruff-lint (push) Has been cancelled
Test / build (3.10) (push) Has been cancelled
Test / build (3.11) (push) Has been cancelled
Test / build (3.12) (push) Has been cancelled
Test / build (3.13) (push) Has been cancelled
Test / build (3.14) (push) Has been cancelled
Test / build (3.8) (push) Has been cancelled
Test / build (3.9) (push) Has been cancelled
2026-03-14 21:27:39 +05:00
Philipp Thumfart
7e75db3ebc
Fixed latent none return bug (#658)
Some checks failed
Docs / docs (push) Has been cancelled
Test / ruff-format (push) Has been cancelled
Test / ruff-lint (push) Has been cancelled
Test / build (3.10) (push) Has been cancelled
Test / build (3.11) (push) Has been cancelled
Test / build (3.12) (push) Has been cancelled
Test / build (3.13) (push) Has been cancelled
Test / build (3.14) (push) Has been cancelled
Test / build (3.8) (push) Has been cancelled
Test / build (3.9) (push) Has been cancelled
2026-03-11 09:58:20 -05:00
Philipp Thumfart
4ac1e546c7
Added async support (#656)
Some checks failed
Docs / docs (push) Has been cancelled
Test / ruff-format (push) Has been cancelled
Test / ruff-lint (push) Has been cancelled
Test / build (3.10) (push) Has been cancelled
Test / build (3.11) (push) Has been cancelled
Test / build (3.12) (push) Has been cancelled
Test / build (3.13) (push) Has been cancelled
Test / build (3.14) (push) Has been cancelled
Test / build (3.8) (push) Has been cancelled
Test / build (3.9) (push) Has been cancelled
* Added async logic

* Added tests and fixed async deadlock on aset

* Used abstract base class for backend to simplify code coverage

* Reordered try except block

* Added explicit thread safety

* Fixed linting error

* Worked on redis init block

* Fixed async test setup

* Added tests for redis instantiation

* Fixed linting errors
2026-03-04 16:37:37 -06:00
Ivan
520e20844a
create autofill_values dict with full_cachekey straight away (#650) 2025-11-24 12:16:02 +05:00
Ivan
a5f01e72bb
Use only method to avoid requesting unused field (#649)
dont query key field since it is not needed
2025-11-23 22:45:16 +05:00
Igor Jerosimić
1614466319
Fix collapse setting for Django 5.1+ #647 2025-11-10 11:01:24 +01:00
Rémy Hubscher
27b1263119
Fix formatting 2025-10-21 10:24:49 +02:00
Rémy HUBSCHER
7030cbb39f
Merge pull request #634 from christherama/mgmt-cmd-respect-db-prefix 2025-10-21 10:01:13 +02:00
Rémy HUBSCHER
5c8df725f8
Merge branch 'master' into fix-collapse-in-django-5-1 2025-10-21 09:55:29 +02:00
Justin Myers
93274106a2 Fix collapse in Django 5.1+ 2025-10-07 09:04:23 -07:00
David Cooper
0f88fe83fa Use extra_context view kwarg in changelist_view()
Currently the `extra_context` kwarg is not used in `changelist_view`, it
is completely ignored. However, using it is a common idiom in a
`ModelAdmin` view method as a way to provide extra context variables to
an overridden template.

This is useful if one wants extra context variables in an overridden
`admin/constance/change_list.html` template.
2025-10-07 11:23:04 -04:00
Rémy Hubscher
6d01cffbc0
Use double quotes 2025-10-07 11:26:18 +02:00
Rémy Hubscher
6f12039ae7
Run ruff format 2025-10-07 11:22:24 +02:00
Chris Ramacciotti
c21ea01528 Respects database prefix when removing stale keys 2025-09-19 22:54:40 -05:00
Pascal F
8193866157
Ruff format 2025-02-04 16:49:33 +01:00
Pascal F
e61c1ed68c
Fix override_config on Django 5.2 2025-02-04 16:49:33 +01:00
Pascal Fouque
2ae381e58e
Fix is_composite_pk on Django 5.2 (#608) 2025-01-27 14:12:47 +05:00
Fernando Karchiloff
745fb6f01e
Add get_values_for_keys function to utils (#607)
* Add get_values_for_keys function to utils
* Error text improvement and formatting
2025-01-14 21:31:32 +05:00
Mirat Can Bayrak
7de0840fe2
Update django.po for Turkish translations/ (#601) 2024-12-23 12:58:23 +05:00
Alexandr Artemyev
a604a5ea9f
Fix #593 (#597) 2024-11-04 08:09:19 -06:00
Alexandr Artemyev
d624ee8730
Better already migrated detection (#588) 2024-09-17 14:59:11 +05:00
Alexandr Artemyev
a68bf903cf
Fix exception in 0002 migration (#579) 2024-09-05 13:30:28 +05:00
Alexandr Artemyev
bb0dc4676f
Collections support (#581)
---------

Co-authored-by: Sebastian Manger <manger@netcloud.ch>
2024-09-04 14:41:53 +05:00
ivan-klass
5e221a855b
More safe suppress of pickle-to-json data migration (#578) 2024-09-03 08:48:37 -05:00
Felipe Gonzalez
cf838ab28a
fix: Fixed _pickle.UnpicklingError (#576)
The error indicates an issue with unpickling data during the migration process. Specifically, it raises an `_pickle.UnpicklingError` with the message "invalid load key, '{'." The data being loaded may be corrupted or not in the expected format.
2024-08-31 09:31:21 -05:00
Alexandr Artemyev
c690d5ef0f
Fix #570 (#571)
* Fix #570

* [PATCH] chore(ci): check missing migrations

---------

Co-authored-by: Sebastian Manger <manger@netcloud.ch>
2024-08-23 14:13:54 -05:00
Alexandr Artemyev
3640eb228a
Replace pickle with JSON (#564)
* Replace pickle with JSON

Co-authored-by: Ivan Klass <klass.ivanklass@gmail.com>
2024-08-20 09:35:27 -05:00
Alexandr Artemyev
8c6552fdaf
Enable more rules for ruff (#562) 2024-07-05 19:38:26 +05:00
Alexandr Artemyev
8cec9c24b0
Refactoring for constance cli command (#561) 2024-07-03 19:51:11 +05:00
Alexandr Artemyev
57083bbed2
Add ruff format & lint (isort only) (#560) 2024-07-03 19:21:33 +05:00
Alexandr Artemyev
554eedc7c2
migate from setup.py to pyproject.toml & bump tox & declare support for python 3.12 (#557)
* migate from setup.py to pyproject.toml
* bump tox
* declare support for python 3.12
2024-07-03 13:30:29 +05:00
Rotzbua
5f262fce9a
fix: django 5.1 removed collapse.js (#556) 2024-06-15 00:55:01 +05:00
Rotzbua
eb5aef2554
chore: migrate to f-string
fix: use str() instead of f-string

credit: tool pyupgrade
Co-Authored-By: Alexandr Artemyev <mogost@gmail.com>
2024-06-09 21:07:07 +02:00
Alexandr Artemyev
053944200e
Merge pull request #547 from Rotzbua/chore_migrate_es2015
chore: migrate JS to ES2015
2024-06-09 22:37:39 +05:00
Alexandr Artemyev
bf69baec61
Merge pull request #549 from Rotzbua/fix_remove_legacy
fix: remove legacy django <1.9 code
2024-06-09 22:37:15 +05:00
Alexandr Artemyev
ef24fcb95f
Merge pull request #548 from Rotzbua/fix_html_trailing_slash
fix: html5 does not allow self-closing tags
2024-06-09 22:37:03 +05:00
Rotzbua
7589b11cf4
fix: remove legacy django <1.9 code 2024-06-08 23:28:12 +02:00
Rotzbua
3eede068f4
fix: html5 does not allow self-closing tags
Seems like leftovers from xhtml.
2024-06-08 21:31:38 +02:00
Rotzbua
60d85d7b54
chore: migrate JS to ES2015
Use let/const instead of var.
2024-06-08 21:25:52 +02:00
Rotzbua
1b27d73586
fix: typos 2024-06-08 19:55:28 +02:00
Chris Clark
6f0bb23102 one query 2024-02-01 14:24:48 -05:00
Chris Clark
d1c409b1ac better DB handling 2024-02-01 14:15:22 -05:00
Sergei Iurchenko
d03bea804f
fix migration on mysql (#531)
Co-authored-by: Iurchenko Sergei <empty>
2023-10-16 09:14:40 -05:00
Camilo Nova
bc9707d618 Bump version 3.1.0 2023-08-21 16:20:18 -05:00
James Tiplady
6a5052e9f4
Adding support for using a subdirectory of MEDIA_ROOT for file fields (#475)
* Adding support for using a subdirectory of MEDIA_ROOT for file fields with CONSTANCE_FILE_ROOT setting

* Improving documentation for CONSTANCE_FILE_ROOT

* Updating PR branch to work with latest master
2023-07-29 11:35:38 -05:00
Camilo Nova
8317070890 Bump version 3.0.0 2023-06-27 15:53:30 -05:00
Søren Howe Gersager
0047a781af
Fix constance management command without admin installed (#506)
* refactor out ConstanceForm and get_values into forms.py and utils.py respectively

* fix tests and documentation

* correct mock import

* fix merge
2023-04-07 08:16:39 -05:00
Sergei Iurchenko
5ab48e1943
505-race-condition-caused-by-when-constance-registers-django-checks (#514)
Co-authored-by: Iurchenko Sergei
2023-03-13 17:45:31 -05:00
Sergei Iurchenko
2cb2ccd063
Refactor app and model 2023-03-10 20:38:31 +03:00
Dmitry
b6f8e2c5b8
"failed to update live settings" message (#491)
* "failed to update live settings" message

* Update constance/locale/ru/LC_MESSAGES/django.po

* test fix

* fix .po/.mo

Co-authored-by: Alexandr Artemyev <mogost@gmail.com>
2022-10-13 12:16:31 -05:00