Julien Constant
f876bc3599
Unified header across all files
2024-06-26 19:17:57 +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
b5a40cfda9
Mise à jour de Black vers la version 23.3 ( #629 )
2023-04-22 15:32:31 +02:00
98bfc308a7
Minimal working version
...
* Upgrade dependencies
* Fix ugettext
* Fix bad urls
2022-08-04 00:28:09 +02:00
f34f5fe693
Upgrade black and format accordingly
2020-08-27 15:59:42 +02:00
4a78157f9a
club: fix typo on ClubSellingView
2019-11-28 15:14:51 +01:00
bf5fc8750d
club: steam CSV download for SellingView
2019-11-28 14:52:33 +01:00
274a7b7137
core/club: allow adding custom js action to pagination link, useful for FormDetailView with pagination
2019-11-28 01:46:41 +01:00
8dd2c02d3e
club: add pagination for ClubSellingView
2019-11-28 00:30:51 +01:00
a73f5cb270
club: use sums in bdd for ClubSellingView
2019-11-27 21:37:59 +01:00
7d40e11144
club: ClubSellingView way faster and with multiple selections everywhere
2019-11-27 20:59:32 +01:00
af48553e35
club: separation between archived products and non archived ones
2019-11-27 16:23:14 +01:00
5c8fa1b9e7
core: add UserIsRootMixin and an admin delete view for memberships
2019-11-24 19:23:43 +01:00
tleb
143b128891
club: fix 500 on club_new
2019-10-21 22:56:24 +02:00
811809895e
club: fix mailing list form that unexpectedly relied on try catch in permissions
2019-10-16 21:21:06 +02:00
2616e8b24c
django2.2: relpace django.core.urlresolvers by django.urls
2019-10-08 22:46:01 +02:00
275b89cdf0
club: fix SellingFormBase import
2019-05-21 10:53:18 +02:00
654099067e
clubs: tests for adding mailings
2019-05-09 20:32:26 +02:00
d1fb9cc4c3
clubs: remove moderator and club from mailing form + display not moderated mailings
2019-05-09 17:43:47 +02:00
1d07195881
clubs: add bulk deletion on mailing lists
2019-05-01 22:54:18 +02:00
da25480993
clubs: use standard rights for ClubMailingView
2019-05-01 15:50:03 +02:00
a0e39b8904
clubs: rewrite MailingForm to include everything in one place
...
Everything is handled on the same view, no more redirection hacks
Remove get_context_data in DetailFormView since it's already done by django
2019-05-01 15:49:30 +02:00
cfd4955672
clubs: clean up imports and move forms to external file
2019-05-01 03:32:55 +02:00
01803c8cf0
clubs: remove useless self.request_user into ClubMemberView
2019-04-25 19:51:30 +02:00
68f61a432a
clubs: adapt tests to new display and fix form validation issue for start_date
2019-04-25 17:31:42 +02:00
75328de5ca
clubs: fix membership form and add bulk mark as old tests
2019-04-25 15:40:49 +02:00
6964692556
clubs: basic bulk mark as old
2019-04-24 18:17:03 +02:00
80f1f9699c
clubs: move Membership form validation outside of model and fix and add tests
2019-04-24 17:12:20 +02:00
d5ad2c5141
clubs: Handle bulk add of users in clubs and refresh of the form handling
2019-04-24 03:10:42 +02:00
0581c667de
Club: blackify view file
2018-10-05 21:51:54 +02:00
5a6c7aaadf
clubs: un champ plus joli pour la short_description, crack vas être content
2018-10-04 00:15:47 +02:00
b7483513be
Fix for mailing lists
2017-12-22 12:06:23 +01:00
Skia
a2ee017668
club/views: fix call to parent's get_context_data in PosterListView
2017-12-21 18:16:32 +01:00
gnikwo
903f07ecbd
Added screen list on poster + Added unmoderated poster artefact + discussions fixes
2017-12-21 12:25:07 +01:00
72d2862e3e
Posters now working + notifications for com admin
2017-12-16 20:48:36 +01:00
cc99cecaa0
Fix tab mixin on clubs
2017-12-05 15:53:36 +01:00
gnikwo
91d3e9e4dc
Delete function + club tabs
2017-12-05 15:24:46 +01:00
gnikwo
5cd031f579
Ready for review
2017-11-28 15:12:25 +01:00
gnikwo
21b24f2891
Club views and discussions fixes
2017-11-28 15:12:04 +01:00
8146186447
Fix some bugs in mailings with new club tools
2017-10-06 11:09:31 +02:00
4800db3c2c
Add auto generation for mailing lists
2017-10-06 11:09:31 +02:00
4310441269
Redirect directly on member page when adding a new member. Still has a bug : an user already member always show when success
2017-10-06 11:09:31 +02:00
baa7be69e4
Better integration of wiki pages on clubs
2017-10-06 11:09:31 +02:00
db509bf060
Nice club presentation
2017-10-06 11:09:30 +02:00
fe69cbcee1
Add page for clubs and inactive clubs
2017-10-06 11:09:29 +02:00
Skia
a2dc00f4e5
club: add club logo
...
Signed-off-by: Skia <skia@libskia.so>
2017-09-25 20:13:35 +02:00
4f6109e27c
Refactor mailings email
2017-08-22 22:39:12 +02:00
470680e760
Add moderation for mailing lists
2017-08-22 15:36:39 +02:00