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
271d57051e
Upgrade to fontawesome 6
...
* Adapt fontawesome usage when needed
* Fix uv guide not importing css
* Remove utf8 usage for fontawesome
2024-10-03 00:06:03 +02:00
655d72a2b1
Completely integrate wepack in django
...
* Migrate alpine
* Migrate jquery and jquery-ui
* Migrate shorten
* Add babel for javascript
* Introduce staticfiles django app
* Only bundle -index.js files in static/webpack
* Unify scss and webpack generated files
* Convert scss calls to static
* Add --clear-generated option to collectstatic
* Fix docs warnings
2024-10-02 16:11:02 +02:00
thomas girod
1800785b80
generalize usage of the paginate_jinja macro
2024-09-27 11:21:33 +02:00
thomas girod
ff088009d9
move static files in their respective application
2024-08-26 22:34:31 +02:00
thomas girod
eef15e05f4
use autocomplete_fields in admin
2024-08-01 11:27:54 +02:00
thomas girod
b25805e0a1
introduce djhtml as jinja+scss formater
2024-07-25 16:46:45 +02:00
thomas girod
04e7f65e8e
Merge pull request #725 from ae-utbm/drop-jquery-calendar
...
Remove jquery datetimepicker
2024-07-25 01:20:41 +02:00
fee7ade1a5
Harmonize test names
2024-07-24 00:50:48 +02:00
thomas girod
9295325d21
remove jquery datetime picker
2024-07-23 23:26: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
cfc19434d0
ruff rules UP008 and UP009
2024-07-08 15:37:09 +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
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
thomas girod
99827e005b
upgrade re_path to path ( #533 )
2023-01-09 22:07:03 +01:00
Thomas Girod
ceb2888f82
enhance admin pages
2022-12-19 20:55:33 +01:00
Julien Constant
faccc1367f
Fix le panier de l'Eboutic pour Safari ( #518 )
...
Co-authored-by: Théo DURR <git@theodurr.fr>
Co-authored-by: thomas girod <56346771+imperosol@users.noreply.github.com>
2022-12-14 08:38:41 +01:00
98bfc308a7
Minimal working version
...
* Upgrade dependencies
* Fix ugettext
* Fix bad urls
2022-08-04 00:28:09 +02:00
Julien Constant
85788977fe
Moved file to correct place & improved CSS a bit
2022-06-15 15:32:16 +02:00
Julien Constant
41369f738e
Improved Elections CSS for the table
2022-06-15 01:42:17 +02:00
tleb
49a0ade315
core: create TzAwareDateTimeField to replace forms.DateTimeField
2021-09-29 15:24:06 +02:00
Skia
a3158253a7
Black update
2021-09-26 13:58:39 +02:00
f34f5fe693
Upgrade black and format accordingly
2020-08-27 15:59:42 +02:00
81fcf411c1
django2.2: forms fixs for new API
2019-10-08 22:46:38 +02:00
97c316b62e
django2.2: replace removed is_anonymous() and is_authenticated to their now used counterparts
2019-10-08 22:46:03 +02:00
90921fd4cd
django2.2: some migrations to make django happy
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
12b6f0d488
django2.2: adapt DateTimeField in forms with the new API
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
3dda8eafc4
elections: use MarkdownInput for CandidateForm
2018-12-20 16:43:59 +01:00
cb58b00b6e
All: Apply Black coding rules
2018-10-05 21:52:55 +02:00
5915de9603
It's better to delete an object in delete
2017-12-12 14:52:08 +01:00
d49f7858d3
Better ui for group selection on election and wiki
2017-12-10 21:37:50 +01:00
4217b92941
Avoid moving role order in election by reloading page
2017-12-05 14:22:59 +01:00
2f3b481037
Improve deletion and add ordering on roles
2017-12-02 19:05:48 +01:00
625b5132c4
Election list deletion and ux improvements
2017-12-01 19:45:28 +01:00
ea09604b2e
Other line fix
2017-06-07 19:36:55 +02:00
b6a68fa090
Fix some ugly lines
2017-06-07 19:16:55 +02:00
41a9bf9953
Elections : Fix tests, cleaned urls and add nice description
2017-06-07 18:49:24 +02:00
c4389bb9cd
Add a way for admin to delete elections and add archive system
2017-06-07 18:42:16 +02:00
0076c9cdb4
Macro for pagination
2017-06-07 18:39:42 +02:00
d3fbc65cdc
Pep8 for elections
2017-06-07 18:39:42 +02:00
f2aadae8e8
Fix errors on election tests
2017-04-25 15:30:57 +02:00
b5363c2987
Firsts tests for elections
2017-04-25 15:30:57 +02:00