Commit graph

103 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
Justin Myers
19889239ad Fix Django 5.1+ admin tests 2025-11-04 08:31:05 -08:00
Rémy Hubscher
0f74be9035
Fix linter 2025-10-21 10:28:35 +02:00
Rémy Hubscher
27b1263119
Fix formatting 2025-10-21 10:24:49 +02:00
Rémy Hubscher
f8208af706
Fix imports 2025-10-21 10:23:38 +02:00
Rémy Hubscher
ae94604872
Merge branch 'mgmt-cmd-respect-db-prefix' 2025-10-21 10:01:47 +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
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
Rémy Hubscher
efe8516efb
Fix missing import 2025-10-07 11:05:48 +02:00
Chris Ramacciotti
c21ea01528 Respects database prefix when removing stale keys 2025-09-19 22:54:40 -05:00
Alexandr Artemyev
f213eb4b79
Fix ruff 2025-01-14 21:40:57 +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
Alexandr Artemyev
bb0dc4676f
Collections support (#581)
---------

Co-authored-by: Sebastian Manger <manger@netcloud.ch>
2024-09-04 14:41:53 +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
57083bbed2
Add ruff format & lint (isort only) (#560) 2024-07-03 19:21:33 +05:00
Rotzbua
1b27d73586
fix: typos 2024-06-08 19:55:28 +02: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
Felippe Medeiros
b7da81451e
Forward the request when saving the form (#499) 2022-10-12 19:07:49 -05:00
alexkiro
55aed5d4d4
Add support for using gettext in fieldset headers (#489)
* Support tuples for CONFIG_FIELDSETS

* Add test for tuple CONFIG_FIELDSETS

* Preserve tuple fieldset sorting

* Add i18n example in the docs
2022-07-13 10:01:25 -05:00
horpto
8b34b63fd0
Add caching redis backend (#466)
* Add caching redis backend

* fix mget implementation

* fix lock
2022-01-06 15:45:11 -05:00
Ekin Ertaç
dfce4f2fe5
url() is deprecated in Django 3.1 (#418)
* replace url()'s with re_path()

* convert re_path to path

* import path instead of re_path

* Convert missed re_path to path

Co-authored-by: Alexandr Artemyev <mogost@gmail.com>
2020-11-18 11:12:27 -05:00
Misha Behersky
9eccfe0386
Add memory backend (#394)
* Add simple backend

* Add test case for simple backend

* Add tests for mget backend method

* Fix redis mock mget implementation

* Make sure memory backend is thread safe

* Add docs section for memory backend

* Add test usage examples to docs

* Update docs for memory backend in testing

* Share memory storage between threads
2020-06-10 19:49:42 +02:00
utapyngo
73fa362e3f Add test_newlines_normalization 2020-05-26 19:08:17 +07:00
Vladas Tamoshaitis
bd8041c55f
Allow override_config for pytest (#338)
* provides: base override class; unittest and pytest overrides

* raise invalid config error earlier

* update AUTHORS

* avoid AttributeError

* fix comment

* add tests

* fix tests, update docstring

* update docs, improve tests

* fix docs

* fix markdown

* refactor pytest override, use hidden fixture, refactor base and unittest classes

* improve docstring and error

* refactor pytest override to use hooks

* set minimum pytest version

* revert empty lines removal

* introduce pytest test runner for package, refactoring

* WIP

* Finalize tox config, refactor docs, add global fixture

* skip py35

* pytest command: remove unnecessary ignore

* address comments

* Update constance/test/pytest.py

* address comments

* add test for checking nested markers

Co-authored-by: Camilo Nova <camilo.nova@gmail.com>
Co-authored-by: Paweł Zarębski <ppjzarebski@gmail.com>
2020-04-04 11:38:22 -05:00
Ilya Chichak
4de4114bbd
Make groups of fieldsets collapsable. Fix #350 (#351)
* made results table responsive for Django 2 admin

* make fieldsets collapsable

* updated version via feature

* fixed codestyle according to requested changes

* made results table responsive for Django 2 admin

Co-authored-by: Camilo Nova <camilo.nova@axiacore.com>
2020-03-16 11:33:19 -05:00
Camilo Nova
5e91a92431
Allow concurrent calls to set() method (#384) 2020-03-05 18:04:55 -05:00
Yurchenko Sergey
8f20ca3111 command-to-delete-stale-records (#355)
* command-to-delete-stale-records
2020-01-27 14:24:32 -05:00
Alexandr Artemyev
590fa02eb3 Drop support py<3.5 django<2.2 (#359)
* Drop support py<3.5 django<2.2

* Remove admin_static
2019-12-23 16:20:41 -05:00
Alexandr Artemyev
e069ddb91a
Fix #341 2019-09-16 11:51:18 +03:00
Dmitriy Tatarkin
299b3b1996 Fixed "can't compare offset-naive and offset-aware datetimes" (#337)
* Fixed "can't compare offset-naive and offset-aware datetimes" when USE_TZ = True

* Fixed case when `USE_TZ = False`
2019-08-12 11:00:07 -05:00
Kirill Goncharov
1e751f1afa Optimizations for database backend (#329)
* Add test for database backend with query count assertions

* Rewrite set() method of database backend to reduce number of queries
2019-06-08 09:14:58 -05:00
Richard Morrison
2948dff3cc Add a Django system check... (#326)
* Add a Django system check that CONFIG_FIELDSETS accounts for all of CONFIG

* Fix test (don't actually modify values when submitting form) and restore python2 compatibility
2019-04-06 09:13:55 -05:00
John Carter
d6ed427c33 Drop Django<1.11 and 2.0, fix tests vs Django 2.2b (#320)
Also added py37, pypy3 to tox, travis
2019-03-11 17:20:08 -05:00
Mariusz Felisiak
fb2483ce8d
Fixed TestAdmin.test_linebreaks() due to linebreaksbr() behavior change on Django 2.1.
Changed in ff05de760c.
2018-03-31 18:32:46 +02:00
Camilo Nova
61356da3fb
Merge pull request #258 from ownaginatious/constance_dbs_setting
Workaround to make `django-constance` work in multi-DB project
2018-03-15 13:49:25 -05:00
Anton Shurashov
40188c093a add config labels 2018-03-06 23:41:53 +03:00
Dillon Dixon
5763010f16 CONSTANCE_DBS setting for directing constance permissions/content_type settings to certian DBs only 2018-03-02 15:40:41 -08:00
Jannis Leidel
8b8b6569d9
Use original path to constance settings in admin tests. 2017-06-02 10:52:42 +02:00
Bruno Alla
1cce582edc Fix #187: Preserve sorting from fieldset config (#207) 2017-06-02 10:52:16 +02:00
Camilo Nova
4268ea808a Merge pull request #213 from felixxm/cleanup-unused
Removed unused variables and imports.
2017-05-25 14:38:42 -05:00
Mariusz Felisiak
3af72e167b
Removed unused variables and imports. 2017-05-25 14:02:52 +02:00
Mariusz Felisiak
fc5a32f2ac
Fixed #211 -- Added datetime.timedelta support. 2017-05-25 13:50:27 +02:00