54 Commits

Author SHA1 Message Date
fa4fa47fd5 feat: Add optional ordering feature for resources
Implemented optional ordering of resources in FastAPI admin. Code has been added to accept an 'order_by' parameter in the resource route, if present the list of resources will be sorted accordingly. Templates were updated to support this feature by adding a clickable link to each column header for sorting.
2024-02-28 08:45:53 -03:00
5f34bf0d73 feat: remove aioredis to redis 2022-07-25 18:25:04 +08:00
1a38b3dac4 Render FK values inside resource list view 2021-10-19 14:20:59 +01:00
0170abb5c3 Save duplicated method call into variable 2021-10-19 11:45:14 +01:00
04a3dcd9aa Load select_related after update resource 2021-10-19 11:37:20 +01:00
c4e640b24c refactor: ComputeField 2021-07-21 21:04:45 +08:00
0baafefbf3 Fix action link 2021-07-16 09:58:06 +08:00
844d982c6c update action link format 2021-07-10 12:21:09 +08:00
90164ef04d Fix accessible when not login. (#53) 2021-06-29 17:05:00 +08:00
70d2a7a529 Use str type for pk path param. (#52) 2021-06-04 17:54:02 +08:00
50ebd3d864 bug fix 2021-05-14 22:38:01 +08:00
88ae0f9278 Add column_attributes 2021-05-13 16:10:04 +08:00
3e9c6f636e update filters 2021-05-08 22:58:04 +08:00
064eceea57 add request to parse_value 2021-05-06 20:07:52 +08:00
1e70bd09d2 add request params 2021-05-06 19:53:50 +08:00
e17d6a38c6 add row_attributes and cell_attributes 2021-05-05 23:14:00 +08:00
6af5852082 update 2021-05-04 22:33:30 +08:00
1118e990a9 Sync pro 2021-05-01 20:45:28 +08:00
7f957661ec new project 2021-04-25 17:17:21 +08:00
1d79c1ff73 Simplified "has permission" logic and fixed a major flow in "{resoruce}/grid" not applying correct data to _actions
Function has_resource_permission() need to live in depends.py as it cause circular dependencies if in common.py
2021-01-21 10:48:02 +01:00
861aea95ab Fix style 2021-01-19 18:16:23 +01:00
643e66560c Only the buttons corrsponding to what actions uses are allowed to execute are displayed in frontend.
Changes:
-One extre function added to depends that only check is user has specific permission added
-Populate _action to returned dict in {resource}/grid
2021-01-17 10:29:23 +01:00
f130cd9196 Fix home menu and update version 2020-11-02 17:49:49 +08:00
9b4a41b3f9 Add custom filters 2020-10-19 17:55:17 +08:00
0e95a7b146 Hide menu when no children menu. 2020-10-15 12:54:44 +08:00
3ea6d6e4ed add import 2020-09-03 15:42:24 +08:00
2dd95e364a add adminlog 2020-09-01 23:50:00 +08:00
b7df9917f4 fix menu error 2020-08-15 21:23:47 +08:00
999d8517fa not use ujson 2020-07-29 15:48:33 +08:00
f4bc59e550 Fix user create password hash. 2020-07-24 16:53:15 +08:00
296aa1a1e8 add update password 2020-07-24 00:12:49 +08:00
08d0216a9f Add _rowVariant and _cellVariants 2020-07-23 15:28:31 +08:00
821f5cbe8a Add password auto hash.
`Field` description as help text for form.
2020-06-20 14:48:06 +08:00
461335c421 add custom login_view 2020-06-05 18:58:57 +08:00
afabc6cd27 add Makefile
update cli
2020-05-22 21:28:32 +08:00
7ad7c874f0 fix bulk action
fix export
2020-04-29 11:17:48 +08:00
dffd81f8fa add more site config 2020-04-26 23:15:23 +08:00
04d5e04dee fix rest
add custom home view
2020-04-26 15:45:39 +08:00
f592a4288e fix permissions 2020-04-21 18:16:27 +08:00
116b02bdea update README.rst 2020-04-20 15:43:03 +08:00
3941862819 fix site menu 2020-04-16 22:16:53 +08:00
90f3aa0ec9 fix no avatar 2020-04-16 13:57:15 +08:00
4e70174c85 add builtin permissions
remove orjson
fix tortoise error
2020-04-15 18:59:41 +08:00
868177fa09 fix tortoise-orm error
external link
update examples
2020-04-13 16:15:49 +08:00
51e5f7c043 add bulk actions support 2020-04-11 19:53:41 +08:00
eb7b0742d6 add auto pk field mapping 2020-04-11 15:03:21 +08:00
3cdfdd2b36 add xlsx export 2020-04-10 23:30:57 +08:00
d8afedced8 fix create error 2020-04-10 16:20:36 +08:00
f574ca313b support datetime picker
readonly support
custom fields_type
2020-04-10 14:03:15 +08:00
9658eacc36 add sort support
add ManyToManyField support
2020-04-09 23:58:34 +08:00