Commit Graph

51 Commits

Author SHA1 Message Date
88b70bf51f rename main groups to their real production version 2025-06-18 18:01:37 +02:00
805b146f17 change Club.unix_name to Club.slug_name and remove it from forms 2025-03-28 17:42:53 +01:00
df2d0d4d4c methode clean dans MergeForm
fixed formatting

Update rootplace/forms.py

Co-authored-by: thomas girod <56346771+imperosol@users.noreply.github.com>

Check that a user cannot be merged into itself

ajout des traductions

changed test language to french

Check that a user cannot be merged into itself
2025-03-28 14:44:55 +01:00
7c3186da79 apply ruff rule A005 2025-03-10 10:33:05 +01:00
6bcc420af1 Merge pull request #969 from ae-utbm/default-groups
Give default groups to users
2025-01-11 20:44:39 +01:00
a8810816f0 Give the public group to newly created users 2025-01-10 02:23:07 +01:00
8b8a295e16 fix ban page access 2025-01-10 01:29:24 +01:00
4f35cc00bc Add UserBan management views 2025-01-05 15:49:08 +01:00
8c660e9856 Make core.User inherit from AbstractUser instead of AbstractBaseUser 2024-12-19 10:39:04 +01:00
37c4621e9e Merge pull request #912 from ae-utbm/refactor_populate
Refactor populate
2024-11-13 15:43:18 +01:00
b091fee035 custom queryset method to bulk update customer balance 2024-11-10 02:59:43 +01:00
Sli
a950585a02 Remove ajax_select from rootplace 2024-10-20 20:55:07 +02:00
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
a4fe4996aa Merge pull request #834 from ae-utbm/real-name
Restore real name
2024-10-03 10:12:23 +02:00
0eaa20e09d fix localdate issues 2024-10-03 00:25:22 +02:00
Sli
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
1800785b80 generalize usage of the paginate_jinja macro 2024-09-27 11:21:33 +02:00
Sli
9c93162741 Add missing files 2024-09-23 10:25:27 +02:00
Sli
6068c6048a Use real name of the website once again 2024-09-23 01:37:25 +02:00
62bb15317c T2 ruff rule 2024-08-06 11:42:10 +02:00
b25805e0a1 introduce djhtml as jinja+scss formater 2024-07-25 16:46:45 +02:00
Sli
fee7ade1a5 Harmonize test names 2024-07-24 00:50:48 +02:00
8c69a94488 use google convention for docstrings 2024-07-21 00:57:04 +02:00
171a1cb876 ruff rule FBT 2024-07-08 15:37:09 +02:00
cfc19434d0 ruff rules UP008 and UP009 2024-07-08 15:37:09 +02:00
aa07fa9207 faster tests 2024-07-04 14:03:19 +02:00
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
3143d3d91a reorganize imports with ruff 2024-06-26 12:35:38 +02:00
b30ee0a27a [FIX] Correction de bugs (#617)
* Fix #600

* Fix #602

* Fixes & améliorations du nouveau CSS (#616)

* Fix #604

* should fix #605

* Fix #608

* Update core/views/site.py

Co-Authored-By: thomas girod <56346771+imperosol@users.noreply.github.com>

* Added back the permission denied

* Should fix #609

* Fix failing test when 2 user are merged

* Should fix #610

* Should fix #627

* Should fix #109

Block les URLs suivantes lorsque le fichier se trouve dans le dir `profiles` ou `SAS` :
- `/file/<id>/`
- `/file/<id>/[delete|prop|edit]`

> Les urls du SAS restent accessiblent pour les roots & les admins SAS
> Les urls de profiles sont uniquement accessiblent aux roots

* Fix root dir of SAS being unnaccessible for sas admins

⚠️ need to edit the SAS directory & save it (no changes required in sas directory properties)

* Remove overwritten code

* Should fix duplicated albums in user profile (wtf)

* Fix typo

* Extended profiles picture access to board members

* Should fix #607

* Fix keyboard navigation not working properly

* Fix user tagged pictures section inside python rather than in the template

* Update utils.py

* Apply suggested changes

* Fix #604

* Fix #608

* Added back the permission denied

* Should fix duplicated albums in user profile (wtf)

* Fix user tagged pictures section inside python rather than in the template

* Apply suggested changes

---------

Co-authored-by: thomas girod <56346771+imperosol@users.noreply.github.com>
2023-05-02 13:07:36 +02:00
96dede5077 Speed up tests (#638) 2023-05-02 11:00:23 +02:00
b5a40cfda9 Mise à jour de Black vers la version 23.3 (#629) 2023-04-22 15:32:31 +02:00
8e7c025e47 [FIX] Broken link in readme and license fix (& update) (#591) 2023-04-04 18:39:45 +02:00
a73fe598ef repair user merging tool (#498) 2023-03-04 15:01:08 +01:00
99827e005b upgrade re_path to path (#533) 2023-01-09 22:07:03 +01:00
Sli
98bfc308a7 Minimal working version
* Upgrade dependencies
* Fix ugettext
* Fix bad urls
2022-08-04 00:28:09 +02:00
677a9da469 Merge branch 'master' into gender_options 2021-10-11 17:13:06 +02:00
1f7752d457 Add pronouns to profile ; Update gender settings
Add pronouns to option list in profile
Modify "Sex" translation to "Genre"
Added "Other" to sex option list (alongside Man and Woman)

update DB,add default value to Pronouns field

Update views.py
2021-10-06 14:12:34 +02:00
f34f5fe693 Upgrade black and format accordingly 2020-08-27 15:59:42 +02:00
e634cda318 core/counter: add generic operation logs and implements it for Sellings and Refilling deletions 2019-11-14 01:14:44 +01: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
46db8b391a rootplace: make code clearer and fix typos 2019-03-19 17:23:02 +01:00
f9d4f41b7c rootplace: create a cli utility to delete user's forum message to avoid connection timeout error 2019-03-18 20:52:35 +01:00
2ee50c0fbd rootplace: add tool to delete all forum messages from a specified user 2019-03-17 18:07:57 +01:00
cb58b00b6e All: Apply Black coding rules 2018-10-05 21:52:55 +02:00
76efb91e40 Move mailing list admin to com 2017-08-22 15:36:39 +02:00
9cb88a878d Even better mailing 2017-08-22 15:36:39 +02:00
e97135bf47 Add subscriptions stats 2017-06-06 22:03:56 +02:00
83deae5964 Apply GPLv3 to Sith, and add header to every concerned file 2017-04-24 17:51:12 +02:00
28431ec9be Big refactor: remove Subscriber class 2016-12-10 01:58:30 +01:00