Commit graph

299 commits

Author SHA1 Message Date
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
Rémy HUBSCHER
02c5fd5011
Preparing release 2.9.1 (#497) 2022-08-11 13:54:59 +02:00
Mariusz Felisiak
7b59c64635
Added support for Django 4.1. (#487)
* Added Django 4.0 classifier.

* Added support for Django 4.1.
2022-07-13 10:04:47 -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
Camilo Nova
5de44eafb1 Bump version 2.9.0 2022-03-11 14:36:39 -06:00
Asger Hautop Drewsen
ebb5c8608b
Add default_auto_field to database backend (#449)
This ensures that changing DEFAULT_AUTO_FIELD in settings.py doesn't
create migrations for constance.
2022-03-11 13:25:57 -06:00
Yurchenko Sergey
fc6d41fdb3
serialize_according_to_widget (#472)
Co-authored-by: Сергей Юрченко <s.yurchenko@softpro.com>
2022-02-11 19:49:08 -06: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
Vasyl Dizhak
9554dbacd9
Fixes for Ukrainian locale (#458)
Co-authored-by: Vasyl Dizhak <vasyl.dizhak@moneypark.com>
2021-10-26 10:17:39 -05:00
dkr13
9c95294ed5
do not detect datetime fields as date type (#456)
Co-authored-by: Daniel Klein-Ridder <daniel@kleinridder.de>
2021-10-21 13:49:26 -05:00
Alexandr Artemyev
45bcfc1a4a
Run tests on django 3.2 2021-03-17 19:46:41 +03:00
Jannis Leidel
53ac3cd45f
Add concrete_model class attribute to fake admin model. (#441)
* Add concrete_model class attribute to fake admin model.

This is related to #244 and https://github.com/django-admin-tools/django-admin-tools/issues/103.

* Set attribute during init.
2021-01-13 14:45:37 -05:00
Mohamed Ben Makhlouf
b30ccb6257
add arabic translation (#438)
* add arabic translation

* add compiled file
2020-12-02 11:53:38 -05:00
Camilo Nova
f4732b97fb Bump version 2020-11-19 08:26:54 -05:00
Alexandr Artemyev
550eb1364c
Fix RemovedInDjango40Warning about Signal (#430) 2020-11-18 11:15:44 -05:00
Jair Henrique
08a20c1bbe
Use gettext_lazy instead of ugettext_lazy (#421)
Co-authored-by: Camilo Nova <camilo.nova@gmail.com>
2020-11-18 11:14:05 -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
M. Hosseyn Najafi
5d2bbb7092
Respect other classes added by admin templates (#417)
Fixes #365.
2020-11-18 11:11:35 -05:00
Mahdi Namaki
abc532ed18
Create and add fa language translations files (#420) 2020-11-18 11:11:04 -05:00
mandalay-rp
ce37f630f1
changes for get_inconsistent_fieldnames(): fields_list can be a dictionary, when a fieldset is defined as collapsible (#433)
Co-authored-by: dalay <ussria@gmail.com>
2020-11-18 11:10:31 -05:00
andrei-gypaetus
4e5573ed95
issue #404 prevent reset to default for file field (#413) 2020-07-04 16:45:48 -05:00
Camilo Nova
96e95fcfe6 Bump version 2020-06-22 17:37:59 -05:00
Alexandr Artemyev
79db604954
Fix #410 (#412) 2020-06-22 17:31:13 -05:00
Dmitry Kalinin
2eb3fcec8c Added Ukrainian locale 2020-06-15 00:04:30 +03: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
Pavel Torbeev
6b44a52933
Added a sticky footer (#407)
* Added a sticky footer.

* Returned the semantics to django
2020-06-10 14:21:49 +02:00
Alexandr Artemyev
788616d70c
Add anchors in admin (#402)
* Add anchors in admin

* Fix whitespace

* Add some css
2020-06-09 13:27:52 +02:00
Alexandr Artemyev
96bd3e1047
Fix #396 2020-05-25 19:24:54 +03:00
Erik Seglem
731514c52f
Switch md5 to sha256. (#395) 2020-05-20 08:28:50 -05:00
Sébastien Corbin
1de764a22c
Read-only form with correct perm (#393) 2020-04-29 12:02:04 -05:00
Sébastien Corbin
540ead383c
Fix #386 Translate app name (#392) 2020-04-29 12:00:47 -05: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
fa6ae65594
delete south migrations (#371) 2020-01-30 11:56:12 -05:00
Camilo Nova
0ed37e4fce Bump version 2020-01-29 16:33:02 -05:00
Yurchenko Sergey
8f20ca3111 command-to-delete-stale-records (#355)
* command-to-delete-stale-records
2020-01-27 14:24:32 -05:00
Elisey Zanko
b62206da57 Resolve #367: Set pickle protocol version for the Redis backend (#369) 2020-01-14 15:46:27 -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
Camilo Nova
0e94d13b2a Bump version 2019-12-23 14:07:28 -05:00
Özcan Yarımdunya
288ca7c5e4 Add Turkish language support (#353)
* Add Turkish language
2019-12-23 13:55:58 -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
riazanovslv
98800c0671 ConstanceForm save method tweak (#333)
We need to store the actual name of the file, which the storage's save method provides. Otherwise, if we upload a new file with the same name as the already stored file has, the Constance config will keep a link to the old file.
2019-07-19 13:25:33 -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
Ilya Chichak
d495f1b3bf made results table responsive for Django 2 admin (#325) 2019-03-28 15:04:24 -05:00
Camilo Nova
c965db1bd9 Bump version 2019-03-16 12:25:10 -05:00