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
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
98bfc308a7
Minimal working version
...
* Upgrade dependencies
* Fix ugettext
* Fix bad urls
2022-08-04 00:28:09 +02:00
4dadb1dbc0
django2.2: add default mandatory on_delete on all ForeignKey
2019-10-08 22:46:01 +02: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
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
b6a68fa090
Fix some ugly lines
2017-06-07 19:16:55 +02:00
c4389bb9cd
Add a way for admin to delete elections and add archive system
2017-06-07 18:42:16 +02:00
d3fbc65cdc
Pep8 for elections
2017-06-07 18:39:42 +02:00
e3711533da
Less precise election results
2017-01-10 19:06:34 +01:00
2f2d5292de
Some permissions fixs and security for atomic vote
2016-12-26 23:30:13 +01:00
4d067165aa
Election's trad
2016-12-25 20:09:18 +01:00
c07f49305b
Full CRUD for elections
2016-12-25 19:54:10 +01:00
9d9c86ea0f
Refactored has_voted
2016-12-25 19:54:10 +01:00
37decde04d
Adds an S in electionS
2016-12-25 19:54:10 +01:00
Jean-Baptiste Lenglet
64f5fef89f
Display results only when the polls close
2016-12-25 19:54:10 +01:00
Jean-Baptiste Lenglet
1c761f9db2
Added results when the user is not voting
2016-12-25 19:54:10 +01:00
e8d54764bd
Add election results
2016-12-25 19:54:10 +01:00
Jean-Baptiste Lenglet
fa9e4e5dc6
Tweaked Election view and added request.user as user
2016-12-25 19:54:10 +01:00
33d8c14da5
can_vote in Election
2016-12-25 19:54:10 +01:00
2c76784007
Fixed Election.has_voted
2016-12-25 19:54:10 +01:00
Jean-Baptiste Lenglet
89362bae79
Hide inputs when user already voted.
2016-12-25 19:54:10 +01:00
Jean-Baptiste Lenglet
dfcddbd1fa
Hide election detail parts when user cannot candidate or edit.
2016-12-25 19:54:10 +01:00
Jean-Baptiste Lenglet
a3a5a0446d
Finished main view. Some tuning are to be done.
2016-12-25 19:54:10 +01:00
97f835eb4e
Convert indent with space, fix populate and add an s
2016-12-25 19:54:10 +01:00
a27fd267d7
Remove useless methods on elections
2016-12-25 19:54:10 +01:00
1f60fbd484
Uses election_detail for vote form
2016-12-25 19:54:10 +01:00
521b61517b
Functionnal vote form
2016-12-25 19:52:14 +01:00
e8ead338d0
Removed useless widget added previously + began voteform
2016-12-25 19:52:14 +01:00
51bb6c8472
Can add ElectionList and start of candidature form
2016-12-25 19:52:14 +01:00
d72d8366cf
Add new widget (not tested) and new bdd scheme for elections
2016-12-25 19:52:14 +01:00
7956067686
Election right update
2016-12-25 19:52:14 +01:00
2764f6d2d2
Refactor List Model
2016-12-25 19:52:14 +01:00
c604282b77
Nice display for elections
2016-12-25 19:52:14 +01:00
52e69b0ac1
Refactor elections
2016-12-25 19:52:14 +01:00
a284637190
Normally fixs tests
2016-12-25 19:52:14 +01:00
d14af8e452
New bdd arch
2016-12-25 19:52:14 +01:00
fd3309fc5f
Refactor election bdd
2016-12-25 19:52:14 +01:00
135fa00e25
Fix database and add some view
2016-12-25 19:52:14 +01:00
d685e9ba29
Election bdd + first view
2016-12-25 19:52:14 +01:00