Commit Graph

34 Commits

Author SHA1 Message Date
Julien Constant
84768eb74e
[FIX] Fix cached groups (#647) 2023-05-12 13:27:51 +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
Julien Constant
8e7c025e47
[FIX] Broken link in readme and license fix (& update) (#591) 2023-04-04 18:39:45 +02:00
Julien Constant
28f397574f
Amélioration des pages utilisateurs pour les petits écrans (#578, #520)
- Refonte de l'organisation des pages utilisateurs (principalement du front)
  - Page des parrains/fillots
  - Page d'édition du profil
  - Page du profil
  - Page des outils
  - Page des préférences
  - Page des stats utilisateurs

- Refonte du CSS / organisation de la navbar principale (en haut de l'écran)
- Refonte du CSS de la navbar bleu clair (le menu)
- Refonte du CSS du SAS :
  - Page de photo
  - Page d'albums
2023-03-30 14:38:40 +02:00
thomas girod
99827e005b
upgrade re_path to path (#533) 2023-01-09 22:07:03 +01:00
Sli
dee24fbc9c Fix deprecation warnings 2022-08-03 21:48:37 +02:00
2616e8b24c
django2.2: relpace django.core.urlresolvers by django.urls 2019-10-08 22:46:01 +02:00
3fc8688941
com/core: remove links to index edition that caused error 500 2019-08-29 17:23:27 +02:00
640a72c52d
core: add tests for UserToolsView 2019-07-15 12:36:05 +02:00
cb58b00b6e
All: Apply Black coding rules 2018-10-05 21:52:55 +02:00
Grégoire Duvauchelle
afe78ea634 Add captcha to registration form 2018-07-06 11:35:02 +02:00
Skia
0d5595c683 core: add test for Markdown syntax
Signed-off-by: Skia <skia@libskia.so>
2017-08-24 16:30:46 +02:00
e7de8b2aec Format core 2017-06-13 10:04:13 +02:00
Skia
83deae5964 Apply GPLv3 to Sith, and add header to every concerned file 2017-04-24 17:51:12 +02:00
Skia
11e05050f7 Fix tests and force Markdown renderer to escape HTML 2017-02-24 02:45:37 +01:00
Skia
81e11b4c33 Refactor Can*Mixin 2016-12-14 18:05:30 +01:00
Skia
4542753812 Add two tests for file upload 2016-12-09 15:48:17 +01:00
Skia
20ff409547 Fix tests 2016-11-06 11:36:54 +01:00
Skia
db712c86b8 Fix tests 2016-08-02 22:20:06 +02:00
Skia
356a2d2683 Refactor page handling 2016-05-31 13:00:52 +02:00
Skia
2b999d87ba Another date field update 2016-01-28 10:13:45 +01:00
Skia
8ebd6c64a7 Add Markdown support and better url tolerance for pages 2016-01-08 16:15:06 +01:00
Skia
6cc7851487 Repair all tests and update requirements.txt 2015-12-07 16:08:24 +01:00
f3896cb22e SimpleTestCase -> TestCase. Now, test are almost ok 2015-12-03 18:41:22 +01:00
Skia
50f53e7a6e Fix users tests and pages fixtures 2015-12-02 17:14:47 +01:00
Skia
b237cdbaae Refactor page view with Django's black magic powered DetailView&co 2015-11-25 14:45:18 +01:00
Skia
18115a0dc4 Put view into a module 2015-11-24 16:09:46 +01:00
Skia
259182c1c4 Add page properties view 2015-11-24 14:01:10 +01:00
Skia
9a9541088d Fix wiki, plus clean up and add tests 2015-11-24 10:53:16 +01:00
Skia
e9c18748b0 Make date of birth mandatory 2015-11-22 18:23:21 +01:00
Skia
d3896ad676 Update login system and add tests 2015-11-19 14:44:48 +01:00
Skia
5ee2baedba Add registering tests 2015-11-19 11:23:08 +01:00
Skia
5bd40b2ec4 First commit: basic users 2015-11-18 09:44:06 +01:00