Commit Graph

46 Commits

Author SHA1 Message Date
Julien Constant
38295e591d
Fix immutable default variable in get_start_of_semester (#656)
Le serveur ne percevait pas le changement de semestre, parce
que la valeur par défaut passée à la fonction `get_start_of_semester()` était une fonction appelée une seule fois, lors du lancement du serveur. Bref, c'était ça : https://beta.ruff.rs/docs/rules/function-call-in-default-argument/

---------

Co-authored-by: imperosol <thgirod@hotmail.com>
2023-09-07 23:11:58 +02:00
Julien Constant
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
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
Sli
98bfc308a7 Minimal working version
* Upgrade dependencies
* Fix ugettext
* Fix bad urls
2022-08-04 00:28:09 +02:00
fb8faacddc
trombi: raw tool for trombi admins to add a club membership to a trombi member 2020-03-22 16:14:37 +01: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
5151fc3792
trombi: permissions fixs 2019-10-02 14:56:04 +02:00
35d9c05abf
trombi: fix trombi tools if user has a trombi profile but no trombi linked 2019-09-29 12:19:22 +02:00
fcb3035b67
trombi: fix some 500 errors when accessing page without being in a trombi 2019-09-29 12:09:03 +02:00
cb58b00b6e
All: Apply Black coding rules 2018-10-05 21:52:55 +02:00
Skia
87abdf7e68 trombi: update export page again
Signed-off-by: Skia <skia@libskia.so>
2017-10-06 17:29:23 +02:00
Skia
8a58055d06 trombi: update export page
Signed-off-by: Skia <skia@libskia.so>
2017-10-06 16:38:36 +02:00
Skia
3a16c7aab4 trombi: change comments format in export
Signed-off-by: Skia <skia@libskia.so>
2017-09-25 11:08:20 +02:00
Skia
c7f5203122 trombi: add dpt/option to export
Signed-off-by: Skia <skia@libskia.so>
2017-09-24 19:39:20 +02:00
Skia
3eea8ed4e3 trombi: make the export page
Signed-off-by: Skia <skia@libskia.so>
2017-08-01 13:54:35 +02:00
Skia
8bf72daa31 trombi: prevent double comment using "Precedent" browser button
Signed-off-by: Skia <skia@libskia.so>
2017-07-30 11:52:10 +02:00
Skia
8501df0bef trombi: improve templates
Signed-off-by: Skia <skia@libskia.so>
2017-07-26 16:53:40 +02:00
Skia
8a95f71596 trombi: add missing quick notif
Signed-off-by: Skia <skia@libskia.so>
2017-07-05 21:54:32 +02:00
Skia
de96c07ba8 trombi: allow admins to manually add users
Signed-off-by: Skia <skia@libskia.so>
2017-07-05 21:41:33 +02:00
Skia
a108291422 trombi: update people ordering
Signed-off-by: Skia <skia@libskia.so>
2017-07-05 21:41:33 +02:00
Skia
282d9cd180 trombi: add TrombiUser to admin
Signed-off-by: Skia <skia@libskia.so>
2017-07-05 21:41:33 +02:00
e08a8c4927 Fix import in trombi views 2017-06-13 11:45:17 +02:00
Skia
fbcf525378 Merge branch 'pep8' into 'master'
Pep8

See merge request !81
2017-06-13 11:39:38 +02:00
890943ea48 Fix trombi creation 2017-06-13 10:55:12 +02:00
9447de4468 fix merging 2017-06-13 10:49:11 +02:00
69c95cfd37 Format trombi 2017-06-13 10:22:41 +02:00
Skia
38026025af trombi: add safeguard on user deletion
Signed-off-by: Skia <skia@libskia.so>
2017-06-13 00:35:49 +02:00
Skia
f85ce96225 trombi: Many UI/UX improvements
Signed-off-by: Skia <skia@libskia.so>
2017-06-13 00:23:56 +02:00
Skia
f26f2f4229 trombi: add custom club memberships
Signed-off-by: Skia <skia@libskia.so>
2017-06-12 23:52:59 +02:00
Skia
88d81df23d Fix Trombi edit comment view
Signed-off-by: Skia <skia@libskia.so>
2017-06-11 23:16:35 +02:00
Skia
231cb236dc Add moderation tool to Trombi 2017-05-12 18:42:52 +02:00
Skia
adeda41b52 Add profiles to Trombi 2017-05-12 10:25:26 +02:00
Skia
d88ffae51b Change Trombi permissions 2017-05-12 09:07:35 +02:00
Skia
a0bd5ee8ff Some more trombi pimping 2017-05-11 18:34:05 +02:00
Skia
a485ff1b8e Remove useless timezone import 2017-05-11 16:18:30 +02:00
d79416f80a fix date format in Trombi model 2017-05-11 13:25:51 +02:00
Skia
47a96829d0 Reset trombi's migrations 2017-05-10 23:33:24 +02:00
Skia
d913b8b64f Some more pimp in Trombi + translations 2017-05-10 23:30:20 +02:00
Skia
35f983131f Improve Trombi again with pictures, notifs, and style! 2017-05-10 23:05:05 +02:00
Skia
f2b2ff533d Rename Matmat to Trombi 2017-05-10 22:17:05 +02:00