Commit Graph

472 Commits (d3b6d5f3ba0d841dc95393db506518d7e99a8d47)

Author SHA1 Message Date
Fabio Caccamo 191d82a5c2 Set max line length to `88`. 2023-02-13 15:52:13 +01:00
Fabio Caccamo fa81b2ea5e Reformat code. 2023-02-09 19:14:51 +01:00
Fabio Caccamo 71cc60bea3 Add `metadata` module and read package attrs dynamically. 2023-02-09 19:14:33 +01:00
Fabio Caccamo d0f37806c7 Update `pre-commit`. 2023-02-06 10:35:32 +01:00
Fabio Caccamo ecc1cd77de Increase `flake8` checks. 2023-01-24 18:19:04 +01:00
Fabio Caccamo 76de3d5481 Run `django-upgrade` `pre-commit` hook. 2023-01-18 09:42:45 +01:00
Fabio Caccamo b8a8c1595f Add `pyupgrade` to `pre-commit` config. 2022-12-31 18:53:01 +01:00
Fabio Caccamo b10cb336ce Update `CHANGELOG` and version. 2022-12-19 15:34:03 +01:00
Fabio Caccamo cc79cf1549 Fix modal and popup opening at the same time. 2022-12-19 15:31:02 +01:00
Mounir b3540bc019
Make `Theme.get_active_theme` class method a manager method. (#230)
- Make `get_active_theme` a manager method instead of class method
- Replace `get_active_theme` by `get_active`
- Refactor signals handlers
2022-12-15 11:32:33 +01:00
Fabio Caccamo 186e78b846 Update `CHANGELOG` and version. 2022-12-14 13:00:59 +01:00
Fabio Caccamo 2da294e28f [css] Improve changelist filter margins. 2022-12-14 12:58:57 +01:00
Fabio Caccamo fca8e6d47b Fix modal opener buttons not working when added to the DOM asynchronously. #228 2022-12-14 12:38:47 +01:00
Fabio Caccamo 9522f1a156 Update `CHANGELOG` and version. 2022-12-11 23:37:11 +01:00
Fabio Caccamo 9c1af23785 Run `pre-commit`. 2022-12-11 23:07:11 +01:00
Éric 15da0bfd9a
minor cleanups (#225)
* use normal html self-closing tags

* stop using obsolete test integration

* make test more straightforward

* removed unused setting
2022-12-11 22:53:05 +01:00
Éric 19cbeead58
Include date hierarchy in quick removal links (#218)
* Include date hierarchy in quick removal links

* use date field name in removal link

* reduce diff

* tweak some details

* start adding tests

* use mock without spec :(

it's not easy to instantiate ChangeList, and speccing from
the class means that many attributes are not recognized

* more tests

* more tests

* more checks for generated URLs

* better tags and tests

* compat for tox 4
2022-12-11 20:44:31 +01:00
Vasanth 79f3fefaad
Text color on focus (#223) 2022-12-09 11:08:02 +01:00
Fabio Caccamo 98b8025ed7 Replace `str.format` with `f-strings`. 2022-12-06 13:44:32 +01:00
Fabio Caccamo ae78cb7b86 Update german translations. 2022-12-05 10:21:39 +01:00
Vasanth a75c16162f
[css] Fix inlines vertical alignement (#201)
Co-authored-by: vaz <vmohan@lenbox.io>
2022-12-05 10:19:44 +01:00
derzinn 14634aa505
Add german translation (#222)
* Added german translation

* Updated languages for test cases

* Updated identical message strings

* Updated django.po with corrected file paths

* Re-generated django.mo file

* Language lists sorted by code for test cases
2022-12-05 10:13:11 +01:00
Fabio Caccamo b88d7d8b95 Reformat models module. 2022-12-03 14:04:01 +01:00
Fabio Caccamo 60649ac4e6 Remove `post_migrate` signal handler and multi db test. 2022-12-03 14:01:57 +01:00
Éric d62593e01b
Drop old Python and Django versions (#220)
* drop old python and django versions

* fix tests

* remove compat module entirely

Co-authored-by: Fabio Caccamo <fabio.caccamo@gmail.com>
2022-12-03 13:49:09 +01:00
Vasanth 333025f877
Fix broken tabbed inline name. #221
Co-authored-by: vaz <vmohan@lenbox.io>
2022-12-02 11:18:52 +01:00
Fabio Caccamo 762d1184dd Update `CHANGELOG` and version. 2022-11-30 19:18:25 +01:00
Fabio Caccamo 967f5827f2 [tabbed-changeform] Improve tabbed changeform feature. 2022-11-30 19:06:52 +01:00
Fabio Caccamo f2b800d9ca [css] Adjust list filter dropdown `margin-top`. 2022-11-30 15:38:39 +01:00
Vasanth 07dcb77b88
Add border to rest of the tab space (#215)
* add border to rest of the tab space

* All tabs should be False

* slugify div ids

* bottom padding for horizontal

* do not show solo tabs

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* use properties over attribute

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* rename id to class

* scrollbar shenanigans

* rename tag

* wip : button weirdness in safari

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: vaz <vmohan@lenbox.io>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-30 15:33:59 +01:00
Fabio Caccamo a76de04a8b [css] Reduce secondary scrollbars size. 2022-11-30 15:13:27 +01:00
Fabio Caccamo 1d963230e4 [css] Fix nav filter style on Safari. 2022-11-30 14:54:41 +01:00
Fabio Caccamo 81ebbaa2c9 [css] Fix nav filter clipped outline on focus. 2022-11-30 14:50:27 +01:00
Fabio Caccamo 5376089110 [css] Improve language chooser style. 2022-11-30 14:34:56 +01:00
Fabio Caccamo 79dfb2fea9 [css] Improve nav filter style. #214 2022-11-30 14:34:38 +01:00
Fabio Caccamo 5009e97086 [css] Adjust list filter dropdown vertical margins. 2022-11-29 17:04:20 +01:00
Fabio Caccamo b5fdd6ec19 [css] Reduce scrollbar width on scrollable sticky elements. 2022-11-29 16:45:32 +01:00
Fabio Caccamo 82f2fd7a84 Update translations. 2022-11-26 09:56:50 +01:00
Vasanth cc1f72b23d
Add tabbed changeform support (#211).
* WIP : basic templates

* Add params

* Working override

* Use headerless version only during tabs

* Move CSS to separate file

* Extract js to static folder

* script is not self-closing

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* use classList for updating classes

* Add EOF (newline) to new text files

* a simple test to keep up code coverage

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fieldsets are not tabbed by default

* rename templatetag

* use default page if show_*_tabs are false

* Narrow down css to admin-interface

* Fix typo

* keep codacy happy

* prefix tab classes with tabbed-changeform-

* horizontal scrolling

* Update colors

* color updates

* add back missing font bold

Co-authored-by: vaz <vmohan@lenbox.io>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-26 09:54:33 +01:00
Vasanth 23511d04b2
Fix #208 - do not assume active DB when not specified (#210).
* Do not assume active DB when not specified

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add db routing test case

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* one more test

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* use assertRaises instead of expectedFailure

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Catch a general exception for  django < 2.0

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* use `with` instead of callable

* skip test for django < 2.0

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* remove repeated test

Co-authored-by: vaz <vmohan@lenbox.io>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-11-26 09:53:33 +01:00
Fabio Caccamo 75a52c6449 Update `CHANGELOG` and version. 2022-11-18 21:29:30 +01:00
Fabio Caccamo 0ad9ca74ae Remove translations line numbers. 2022-11-18 21:12:51 +01:00
Fabio Caccamo 158128d864 Add missing `using` parameter in `pre_save` signal handler. 2022-11-18 13:32:30 +01:00
Vasanth 946b9c98e0
Respect 'using' in signals (#200) 2022-11-18 13:07:59 +01:00
Fabio Caccamo 092175202c Update translations. 2022-10-17 14:38:16 +02:00
Fabio Caccamo 5e58c35b08 Run `pre-commit`. 2022-10-14 17:31:57 +02:00
Fabio Caccamo bf72f6c982 Update `CHANGELOG` and version. 2022-10-13 12:06:35 +02:00
Fabio Caccamo 53e5b66785 [css] Fix list-filter dropdown vertical margins. 2022-10-13 12:04:08 +02:00
Fabio Caccamo 5e5e811102 [css] Add `django-rangefilter` style optimizations. 2022-10-13 12:01:00 +02:00
Fabio Caccamo da027966c0 [css] Fix calendar prev/next arrows style. 2022-10-13 11:58:34 +02:00
Fabio Caccamo 87fdcc7f16 Format code. 2022-10-13 11:54:07 +02:00
Fabio Caccamo 3f46d3aa32 Fix `KeyError` raised by `django-rangefilter`. 2022-10-13 11:53:20 +02:00
Fabio Caccamo 5ffd77ef0b Update `CHANGELOG` and version. 2022-10-12 11:32:13 +02:00
Fabio Caccamo a7ca8f96cb Fix duplicated welcome message. #185 2022-10-12 11:28:24 +02:00
Éric bd2fede501
Add CI checks for migrations and translations. #186
* ci: add migration check

* fix install

* fix tox config

* ci: add check for outdated translations

* update french translation

* ci: django needs xgettext

* option --all doesn't work

* refresh all translations

* ci: help debug failed jobs

* ci: fix jobs graph

* ci: also check that compiled catalogs are up to date
2022-10-12 10:17:17 +02:00
Éric f8ace75f36
Add option for list filter quick remove. #183
* add option for list filter quick remove

* move transform from css to python

* make template tag more resilient for unusual filters

* fix tests

* rename field, move rendering to template, change style

* fix tests
2022-10-11 18:15:21 +02:00
Fabio Caccamo de2979219e Fix left/right scrolling broken with django-import-export. #165 2022-10-07 11:12:32 +02:00
Fabio Caccamo bf89569794 Update `CHANGELOG` and version. 2022-10-06 17:27:48 +02:00
Éric f25d340738
Add option to make active list filters more visible. #178
* add option to make active list filters more visible

* fix margins and border radius for selected filters
2022-10-06 09:47:19 +02:00
Éric 04df53ee4b
Add support for collapsible fieldsets that start expanded. #177
* support collapsible fieldsets that start expanded

* address review comments
2022-09-29 09:37:26 +02:00
Fabio Caccamo 5ac75f5cf3 Fix `language_choose_control` migration default value.
Co-Authored-By: Éric <635179+merwok@users.noreply.github.com>
2022-09-29 09:34:12 +02:00
Fabio Caccamo 40b8963d74 Add language chooser control option (default select, minimal select). #136 2022-09-28 18:55:50 +02:00
Fabio Caccamo 8d3d7c9648 [css] Fix variable name typo. 2022-09-28 18:00:05 +02:00
Fabio Caccamo 668c8c806b [html] Add missing version cache-buster to some stylesheets. 2022-09-28 16:58:44 +02:00
Fabio Caccamo 8562c2dbfb [css] Move `language-chooser` style to its own CSS file. 2022-09-28 16:55:00 +02:00
Fabio Caccamo 585575dce7 [js] Fix modal window not closing on save with `django >= 4.0`. #169 2022-09-28 16:34:26 +02:00
Fabio Caccamo 990db6fdc8 [css] Fix sticky list filter scrolling. #175 2022-09-28 15:37:06 +02:00
Fabio Caccamo 5fb85d02a2 [css] Fix paginator missing `border-top` on mobile. 2022-09-28 12:46:11 +02:00
Fabio Caccamo 951c07b76d Update `CHANGELOG` and version. 2022-08-25 12:17:01 +02:00
Fabio Caccamo 769fab5e84 Add `django-streamfield` compatibility. 2022-08-25 12:03:39 +02:00
Fabio Caccamo 6eebeb62c1 Removed testing comments. 2022-08-25 12:00:44 +02:00
Fabio Caccamo 53e9b3f9f7 Fix CSS variable name typo. 2022-08-25 11:58:54 +02:00
Fabio Caccamo 11bde80a36 Update `CHANGELOG` and version. 2022-08-04 14:41:46 +02:00
Jon 003b0f9892
Update admin_interface_tags.py (#168) 2022-08-03 20:07:08 +02:00
Tim Gates 3156882cba
docs: Fix a few typos (#166) 2022-07-31 08:15:07 +02:00
Fabio Caccamo 502b1af775 Updated CHANGELOG and version. 2022-05-14 15:55:16 +02:00
Fabio Caccamo 04632078d1 [css] Fixed dashboard alignment when recent-actions are not visible. 2022-05-10 10:44:05 +02:00
Fabio Caccamo 94c436b137 Reformatted Theme model choices. 2022-05-10 10:43:40 +02:00
Fabio Caccamo d8cffd8c2c Updated CHANGELOG and version. 2022-03-09 10:14:57 +01:00
Mustafa M. A. U. AbuGhazy 8fe7178a13 Converted dynamic inline CSS to external static CSS using CSS variables. #157 #93 2022-03-09 10:14:57 +01:00
Fabio Caccamo c07cad01e9 Updated CHANGELOG and version. 2022-02-24 10:24:45 +01:00
Fabio Caccamo 9c3798b155 Sorted imports. [ci skip] 2022-02-24 10:24:28 +01:00
MG Santos 06069644fd
Removed public disclosures of the lib's version. #154 2022-02-22 16:22:19 +01:00
Fabio Caccamo e64614274c Reformatted code with Black. 2022-02-08 18:58:59 +01:00
Fabio Caccamo 1db3436e2a Updated CHANGELOG and version. 2022-02-04 22:06:34 +01:00
Fabio Caccamo 0f58934ae4 Updated translations. 2022-02-04 22:04:20 +01:00
Fabio Caccamo ec84ce8119 Added missing closing quote and parenthesis to polish translation. 2022-02-04 16:41:52 +01:00
Kamil 369c5582a6
Added Polish translation. #152 2022-02-04 14:35:51 +01:00
leandromsd 7649fef2c2
Correcting spelling error (#151) 2022-01-28 14:17:57 +01:00
Fabio Caccamo 8930ba1ddc Fixed login logo max-width and title color. 2022-01-21 14:17:09 +01:00
Fabio Caccamo ee63826836 Updated CHANGELOG and version. 2022-01-21 13:41:56 +01:00
Fabio Caccamo 7c0a105c92 Fixed body scroll reset to top when opening related modal. #150 2022-01-21 13:39:21 +01:00
leandromsd 384a63f76f
Added portuguese brazil localization. #149
* add portuguese brazil language

* replace empty translations with the original text

Co-authored-by: Leandro Caixeta <leandro.caixeta@buser.com.br>
2022-01-20 13:39:38 +01:00
Fabio Caccamo 6d46dfafc2 Updated version and CHANGELOG. 2022-01-05 18:48:55 +01:00
Micah Walter 3f076578bb
Added link to admin home page on logo and title. #147 2022-01-05 18:31:07 +01:00
Fabio Caccamo 042e93a84b Fixed collapsed inlines rounded bottom borders. 2021-12-21 15:58:39 +01:00
Fabio Caccamo 796cea4a49 Updated CHANGELOG and version. [ci skip] 2021-12-07 11:08:57 +01:00
Fabio Caccamo 0178e0ccff Fixed `check_installed_apps` checks. 2021-12-07 10:59:57 +01:00
Éric 294f8520ab
Fix django default appconfig deprecation warning (#141) 2021-12-06 22:33:33 +01:00
Fabio Caccamo 520dceaa97 Updated CHANGELOG and version. 2021-11-25 11:58:11 +01:00