Commit Graph

161 Commits

Author SHA1 Message Date
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
thomas girod
b5a40cfda9
Mise à jour de Black vers la version 23.3 (#629) 2023-04-22 15:32:31 +02:00
Julien Constant
8e7c025e47
[FIX] Broken link in readme and license fix (& update) (#591) 2023-04-04 18:39:45 +02:00
thomas girod
99827e005b
upgrade re_path to path (#533) 2023-01-09 22:07:03 +01:00
Thomas Girod
ceb2888f82 enhance admin pages 2022-12-19 20:55:33 +01:00
Julien Constant
faccc1367f
Fix le panier de l'Eboutic pour Safari (#518)
Co-authored-by: Théo DURR <git@theodurr.fr>
Co-authored-by: thomas girod <56346771+imperosol@users.noreply.github.com>
2022-12-14 08:38:41 +01:00
Sli
320a896610 Fix tests and broken forms 2022-08-04 17:20:21 +02:00
Sli
98bfc308a7 Minimal working version
* Upgrade dependencies
* Fix ugettext
* Fix bad urls
2022-08-04 00:28:09 +02:00
Skia
e4ddceabea club: fix tests with inclusive translation 2022-02-28 14:50:24 +01:00
tleb
49a0ade315 core: create TzAwareDateTimeField to replace forms.DateTimeField 2021-09-29 15:24:06 +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
81fcf411c1
django2.2: forms fixs for new API 2019-10-08 22:46:38 +02:00
99c8d95443
django2.2: remove direct assignments to many-to-many fields 2019-10-08 22:46:37 +02: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
12b6f0d488
django2.2: adapt DateTimeField in forms with the new API 2019-10-08 22:46:02 +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
275b89cdf0
club: fix SellingFormBase import 2019-05-21 10:53:18 +02:00
81d470b977
clubs: add tests for MalingForm 2019-05-09 20:32:48 +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
24fb714c5e
clubs: set club_id and user_id as mandatory arguments for MailingForm 2019-05-01 18:59:41 +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
f72f0639ee
clubs: display a message instead of a table when no member in a club 2019-04-25 17:38:17 +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
3eb3565a63
clubs: nice display of bulk mark as old 2019-04-25 16:36:20 +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
f6ab993b8d wiki: remove old markdown preview 2018-12-20 14:32:52 +01:00
cb58b00b6e
All: Apply Black coding rules 2018-10-05 21:52:55 +02:00