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
Mariusz Felisiak
9227d469eb
Removed deprecated TEMPLATE_CONTEXT_PROCESSORS setting. ( #206 )
2017-05-08 09:10:41 +02:00
Laszlo Ratsko
3ba4780a13
Fix create_perm in apps.py to use database alias given by the post_migrate signal
2017-02-05 13:27:07 +01:00
Mariusz Felisiak
46b7a02365
Removed unnecessary bytes encode.
2017-01-31 18:08:04 +01:00
Mariusz Felisiak
a691e9e97c
Fixed Django 2.0 tests due to django.conf.urls.include behavior change.
...
Removed pypy for Django 2.0 tests.
2017-01-29 15:08:52 +01:00
John Carter
81b723c91b
Fix handling of MultiValueField's (eg SplitDateTimeField) on the command line. Fixes #186 ( #190 )
...
* Added failing test for setting a datetime with cli
Issue #186
* Adding myself to AUTHORS
* Handle MultiValueField in manage command, resolves #186
* newline at end
2017-01-11 09:52:19 +01:00
John Carter
e3ea904116
Backport command functonality from django-constance-cli (squashed)
2016-11-27 18:55:21 +13:00
John Carter
8941260617
Fix ChoiceField example - key should be None, not '-----'
2016-11-27 18:18:56 +13:00
John Carter
5d299f6222
Added test of form field types
2016-11-27 16:53:43 +13:00
Camilo Nova
b28385f501
Improved coding styles
2016-09-14 12:21:16 -05:00
prokaktus
54b6d55fd5
Fix backend initialization in tests
2016-06-13 04:00:17 +03:00
John Carter
8101d7cc84
Make CONSTANCE_ADDITIONAL_FIELDS more flexible
...
Allow the field config to be a tuple, and allow the config dict to be omitted
2016-03-13 00:05:16 +13:00
Petr Dlouhý
55ddbad52c
Merge remote-tracking branch 'jezdez/master' into custom_fields
2015-11-13 11:44:56 +01:00
Jannis Leidel
c82d76fc28
Fix #115 - stop shadowing the context processor's config variable when rendering the admin change list.
2015-10-01 18:16:39 +02:00