Commit Graph

38 Commits

Author SHA1 Message Date
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
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
f34f5fe693
Upgrade black and format accordingly 2020-08-27 15:59:42 +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
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
cb58b00b6e
All: Apply Black coding rules 2018-10-05 21:52:55 +02:00
Skia
a99cb3e0db Add header to stock files 2017-04-25 16:17:04 +02:00
Skia
e26ad85729 Reset stock migrations 2017-04-25 09:49:05 +02:00
Skia
116aa6b8b5 Update stock URLs 2017-04-25 09:45:13 +02:00
Skia
423313f008 Update stock translations 2017-04-25 09:41:05 +02:00
Skia
df20bf6dde Reindent stock app 2017-04-25 08:57:07 +02:00
guillaume-renaud
7d10c5d837 Forms initial quantity addition 2017-01-13 12:38:04 +01:00
guillaume-renaud
6f88d0cf8c Translations update 2017-01-08 11:46:25 +01:00
guillaume-renaud
539faccab2 Update shopping list history (ShoppingListItem creation) 2017-01-07 11:17:06 +01:00
guillaume-renaud
62200827c2 Finish back up app Stock 2017-01-05 11:24:54 +01:00
guillaume-renaud
fa97929da8 Some classes defined twice -- correction 2017-01-05 11:24:26 +01:00
guillaume-renaud
8f88f7cb70 Take item from stock form addition 2017-01-05 11:16:25 +01:00
guillaume-renaud
2f721592f1 Update stock items quantity after shopping 2017-01-05 11:15:45 +01:00
guillaume-renaud
0660ea5e64 MAJ translations ; stock acces addition in user tool 2017-01-05 11:15:04 +01:00
guillaume-renaud
21c05cc779 Addition of the ShoppingList view to know the item to buy 2017-01-05 11:14:41 +01:00
guillaume-renaud
75af525945 Addition of the StockItem class
addition of Stock app, model, templates, urls

Addition of the stock parameter to the counter admin list

Fix translation files

Creation of the Stock list, edit, create views and creation StockItem create view

Stock application creation

Addition of the StockItem class

addition of Stock app, model, templates, urls

Addition of the stock parameter to the counter admin list

Fix translation files

Creation of the Stock list, edit, create views and creation StockItem create view

Initial StockItem create form value addition

general modifications

Stock admin gestion, items list views, create and edit items

remove stock_main.jinja

Stock application creation

Addition of the StockItem class

addition of Stock app, model, templates, urls

Addition of the stock parameter to the counter admin list

Fix translation files

Creation of the Stock list, edit, create views and creation StockItem create view

Addition of the StockItem class

addition of Stock app, model, templates, urls

Addition of the stock parameter to the counter admin list

Fix translation files

Creation of the Stock list, edit, create views and creation StockItem create view

Initial StockItem create form value addition

general modifications

Stock admin gestion, items list views, create and edit items

Shopping list structure view addition

correct missing endif

a

correct missing endif

Stock application creation

addition of Stock app, model, templates, urls

Addition of the stock parameter to the counter admin list

Fix translation files

Creation of the Stock list, edit, create views and creation StockItem create view

Stock application creation

addition of Stock app, model, templates, urls

Fix translation files

Creation of the Stock list, edit, create views and creation StockItem create view

Initial StockItem create form value addition

general modifications

Stock admin gestion, items list views, create and edit items

remove stock_main.jinja

Stock application creation

addition of Stock app, model, templates, urls

Addition of the stock parameter to the counter admin list

Fix translation files

Creation of the Stock list, edit, create views and creation StockItem create view

Fix translation files

Creation of the Stock list, edit, create views and creation StockItem create view

Initial StockItem create form value addition

general modifications

Shopping list structure view addition

correct missing endif
2017-01-05 11:07:34 +01:00
guillaume-renaud
5b2f126eee Shopping list structure view addition 2017-01-05 11:06:55 +01:00
guillaume-renaud
6c54b246ca Stock admin gestion, items list views, create and edit items 2017-01-05 11:04:12 +01:00
guillaume-renaud
5cb75ec3eb general modifications 2017-01-05 11:02:21 +01:00
guillaume-renaud
587ad96326 Initial StockItem create form value addition 2017-01-05 11:00:09 +01:00
guillaume-renaud
887893fb2d Creation of the Stock list, edit, create views and creation StockItem create view 2017-01-05 11:00:08 +01:00
guillaume-renaud
29fb0af893 Addition of the stock parameter to the counter admin list 2017-01-05 11:00:08 +01:00
guillaume-renaud
33c7e7db9f addition of Stock app, model, templates, urls 2017-01-05 11:00:08 +01:00
guillaume-renaud
fdfd7e7388 Addition of the StockItem class 2017-01-05 11:00:08 +01:00
guillaume-renaud
402a14d69a Stock application creation 2017-01-05 11:00:08 +01:00