89 Commits

Author SHA1 Message Date
24861f835a Not required for nullable foreign key field 2021-04-22 15:58:17 +05: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
a1baa185a7 Merge pull request #27 from swevm/dev
Allow setting custom header and page_header in Site()
2021-01-09 16:01:57 +08:00
3c439da655 Allow setting custom header and page_header
Allow optional custom `header` and `page_header` settings in `class Site(BaseModel):`
header need to be a string looking like `<div>CUSTOM_HEADER</div>` due to how its rendered in frontend

Also, removed duplicate footer parameter in `class Site(BaseModel):` definition.
2021-01-08 09:16:09 +01:00
2d1245d26b Fix latest tortoise error. 2021-01-06 13:40:38 +08:00
54a9e958fe Working decoding for JWT.
Fixes:
401 error for all endpoints requiring JWT token

In factory.py when JWT are encoded HS256 is specified as algorithm. Same need to be done for decoding.

Making algorithm configurable is likely better but for now this works.
2021-01-04 12:39:38 +01:00
f130cd9196 Fix home menu and update version 2020-11-02 17:49:49 +08:00
c6a8409e56 Fix check 2020-10-19 17:57:13 +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
4e48822711 add import 2020-09-01 23:04:37 +08:00
3cd3c10fd4 add step in Field with DecimalField and FloatField 2020-08-17 12:35:19 +08:00
6cbdbcf574 add step in Field 2020-08-17 11:34:22 +08:00
b7df9917f4 fix menu error 2020-08-15 21:23:47 +08:00
cb5b2f2924 update menu struct 2020-08-15 15:03:58 +08:00
866b87141c Auto register permission 2020-08-14 16:16:34 +08:00
ae339347d6 Fix bug 2020-08-10 17:31:36 +08:00
a3ce8ba035 Make Role,Permission abstract. 2020-08-07 15:11:30 +08:00
6d3bde7e11 fix password 2020-07-29 16:17:38 +08:00
cc3c29db21 fix password 2020-07-29 16:02:35 +08:00
999d8517fa not use ujson 2020-07-29 15:48:33 +08:00
d9c7f0830e fix user create password 2020-07-29 10:36:41 +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
5c0da17951 search_fields not required 2020-07-23 09:35:34 +08:00
87e7f932bc fix typing 2020-07-23 09:25:39 +08:00
9d218cd17c fix menu 2020-07-22 18:52:04 +08:00
0795627b5d update deps 2020-07-22 18:08:57 +08:00
2623864c9f Fix createsuperuser error. 2020-07-20 15:52:44 +08:00
8970bacfaf move is_superuser and is_active to base User 2020-07-20 11:02:54 +08:00
51ebc64649 update password change 2020-07-10 15:08:05 +08:00
f1100c194e Merge remote-tracking branch 'origin/dev' into dev 2020-07-05 23:51:14 +08:00
3ada1a1b1c update Makefile 2020-07-05 23:51:04 +08:00
09525d363a Rename fastapi_admin.models.User to fastapi_admin.models.AbstractUser. 2020-07-02 11:46:12 +08:00
0021487167 Make uvloop dependency optional. 2020-07-02 00:11:08 +08:00
97ac067968 update deps 2020-06-29 21:37:01 +08:00
d7b35880a1 update deps 2020-06-21 11:28:34 +08:00
821f5cbe8a Add password auto hash.
`Field` description as help text for form.
2020-06-20 14:48:06 +08:00
6a146a17e0 update dependencies 2020-06-16 18:08:06 +08:00
53faf7a129 add cli --version 2020-06-15 00:02:31 +08:00
7afb81cba8 add docs 2020-06-07 17:54:31 +08:00
461335c421 add custom login_view 2020-06-05 18:58:57 +08:00
213f976ae3 example remove logo 2020-06-03 22:24:22 +08:00
afabc6cd27 add Makefile
update cli
2020-05-22 21:28:32 +08:00
ae4eb02145 fix cli error 2020-05-22 13:33:56 +08:00