Commit graph

326 commits

Author SHA1 Message Date
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
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