imperosol
7ca1afe529
Make core.User
inherit from AbstractUser
instead of AbstractBaseUser
2024-11-20 17:24:56 +01:00
7b41051d0d
Go for a more generic js bundling architecture
...
* Don't tie the output name to webpack itself
* Don't call js bundling webpack in python code
* Make the doc more generic about js bundling
2024-11-19 21:22:14 +01:00
a6b32fcad1
Fix readability and avoid instantiating too many TypeAdapter
2024-10-28 18:08:13 +01:00
3eb3feea49
Fix deprecated usage of schema json method and avoid multiple inheritance on select widgets
2024-10-21 16:14:00 +02:00
ab63ba1c54
Remove ajax_select from accounting
2024-10-21 13:26:11 +02:00
e3dcad62cc
Migrates lookups
...
* products
* files
* Groups
* Clubs
* Accounting
2024-10-20 00:47:31 +02:00
thomas girod
d16a207a83
Add more Ruff rules ( #891 )
...
* ruff: apply rule F
* ruff: apply rule E
* ruff: apply rule SIM
* ruff: apply rule TCH
* ruff: apply rule ERA
* ruff: apply rule PLW
* ruff: apply rule FLY
* ruff: apply rule PERF
* ruff: apply rules FURB & RUF
2024-10-15 11:36:26 +02:00
9c93162741
Add missing files
2024-09-23 10:25:27 +02:00
6068c6048a
Use real name of the website once again
2024-09-23 01:37:25 +02:00
thomas girod
e8b496cfdc
test: Product and ProductType icon resizing
2024-09-15 16:38:58 +02:00
thomas girod
b25805e0a1
introduce djhtml as jinja+scss formater
2024-07-25 16:46:45 +02:00
fee7ade1a5
Harmonize test names
2024-07-24 00:50:48 +02:00
thomas girod
8c69a94488
use google convention for docstrings
2024-07-21 00:57:04 +02:00
thomas girod
2ac578c3ad
ruff rule DJ
...
Co-authored-by: Bartuccio Antoine <klmp200@users.noreply.github.com>
2024-07-08 15:37:10 +02:00
thomas girod
f941435232
ruff rule C4
2024-07-08 15:37:10 +02:00
thomas girod
cfc19434d0
ruff rules UP008 and UP009
2024-07-08 15:37:09 +02:00
thomas girod
688871a680
ruff rule A
2024-07-08 15:37:08 +02:00
thomas girod
d97602e60b
Use pytest for tests ( #681 )
...
* use pytest for tests
Eh ouais, il y a que la config qui change. Pytest est implémentable par étapes. Et ça c'est beau.
* rework tests with pytest
* remove unittest custom TestRunner
* Edit doc and CI
2024-06-26 19:10:24 +02:00
thomas girod
3143d3d91a
reorganize imports with ruff
2024-06-26 12:35:38 +02:00
thomas girod
9bdf3fc4ac
use ruff for formating
...
Co-authored-by: Bartuccio Antoine <klmp200@users.noreply.github.com>
2024-06-26 12:35:14 +02:00
thomas girod
ef968f3673
Better usage of cache for groups and clubs related operations ( #634 )
...
* Better usage of cache for group retrieval
* Cache clearing on object deletion or update
* replace signals by save and delete override
* add is_anonymous check in is_owned_by
Add in many is_owned_by(self, user) methods that user is not anonymous. Since many of those functions do db queries, this should reduce a little bit the load of the db.
* Stricter usage of User.is_in_group
Constrain the parameters that can be passed to the function to make sure only a str or an int can be used. Also force to explicitly specify if the group id or the group name is used.
* write test and correct bugs
* remove forgotten populate commands
* Correct test
2023-05-02 12:36:59 +02:00
thomas girod
96dede5077
Speed up tests ( #638 )
2023-05-02 11:00:23 +02:00
thomas girod
b5a40cfda9
Mise à jour de Black vers la version 23.3 ( #629 )
2023-04-22 15:32:31 +02:00
Julien Constant
8e7c025e47
[FIX] Broken link in readme and license fix (& update) ( #591 )
2023-04-04 18:39:45 +02:00
thomas girod
99827e005b
upgrade re_path to path ( #533 )
2023-01-09 22:07:03 +01:00
98bfc308a7
Minimal working version
...
* Upgrade dependencies
* Fix ugettext
* Fix bad urls
2022-08-04 00:28:09 +02:00
Skia
a3158253a7
Black update
2021-09-26 13:58:39 +02:00
Skia
6a352d642b
accounting: fix tests with a computed date instead of hard-coded one
2021-04-23 12:02:03 +02:00
cd2d3ee6b4
django2.2: fix tests for accounting
2019-10-08 22:46:38 +02:00
f7548ab8d1
django2.2: add on_delete on migrations for OneToOneField
2019-10-08 22:46:03 +02:00
3cb306bc91
django2.2: add on_delete on migrations for ForeignKey
2019-10-08 22:46:03 +02:00
6cc234e8d3
django2.2: add default mandatory on_delete on OneToOneField
2019-10-08 22:46:02 +02:00
4dadb1dbc0
django2.2: add default mandatory on_delete on all ForeignKey
2019-10-08 22:46:01 +02:00
2616e8b24c
django2.2: relpace django.core.urlresolvers by django.urls
2019-10-08 22:46:01 +02:00
be855c6c90
django2.2: migrate url to re_path
2019-10-08 22:46:01 +02:00
18f464a49f
small fix to follow python recommendations
2019-02-02 00:32:34 +01:00
8388f4ee65
Avoid error 500 when target is forgotten
2018-12-18 23:50:24 +01:00
cb58b00b6e
All: Apply Black coding rules
2018-10-05 21:52:55 +02:00
08de5dfe6a
Migration to django 1.11
2018-06-10 16:31:58 +02:00
5fb57e97f7
Add possibility to not link an operation
2017-10-22 22:29:36 +02:00
3104270675
Few changes in accounting design
2017-10-09 16:24:34 +02:00
f8e0147bf5
Small fix on accounting permissions
2017-06-26 11:17:30 +02:00
544ff630a5
Format accounting
2017-06-13 09:48:24 +02:00
43b1d1f3b5
Fix operation form
2017-06-12 19:29:47 +02:00
0e171fbc8f
add some validationErrors on OperationForm
2017-06-09 16:06:18 +02:00
2ef3c0260a
Fix error on accounting when no target_type specified
2017-05-06 21:15:44 +02:00
Skia
83deae5964
Apply GPLv3 to Sith, and add header to every concerned file
2017-04-24 17:51:12 +02:00
Skia
39b32d456c
Some com templates improvments and reordering some models
2017-03-24 09:19:15 +01:00
cfcb671bf0
forgoten o of shame (not for me)
2017-03-14 19:09:12 +01:00
5932aad9fa
Improve journal removing
2017-03-12 20:33:17 +01:00