feat(kesaseteli,admin): admin employer applications and vouchers#3840
feat(kesaseteli,admin): admin employer applications and vouchers#3840nikomakela merged 4 commits intomainfrom
Conversation
b5c10c0 to
1860f98
Compare
| ] | ||
|
|
||
| def has_add_permission(self, request): | ||
| """Disable adding new applications.""" |
There was a problem hiding this comment.
e.g.
| """Disable adding new applications.""" | |
| """Disable adding new employer summer vouchers.""" |
| return False | ||
|
|
||
| def has_delete_permission(self, request, obj=None): | ||
| """Disable deleting applications.""" |
There was a problem hiding this comment.
e.g.
| """Disable deleting applications.""" | |
| """Disable deleting employer summer vouchers.""" |
karisal-anders
left a comment
There was a problem hiding this comment.
Changing the verbose names for EmployerApplication and EmployerSummerVoucher models -> Getting less ambiguous names for them in Django admin would be good. Otherwise looks quite ok already, let's have a look when this is not a draft & tests have passed (Probably tests are only run for "merge to main" PRs?)
eb1658e to
a1b0d9c
Compare
1860f98 to
388697b
Compare
a1b0d9c to
c87c52e
Compare
388697b to
9efe24b
Compare
c87c52e to
fd309ce
Compare
9efe24b to
1261315
Compare
fd309ce to
f2e0ce5
Compare
1261315 to
df557a2
Compare
f2e0ce5 to
f166d71
Compare
df557a2 to
fde5778
Compare
f166d71 to
1806d31
Compare
fde5778 to
a632676
Compare
1806d31 to
37a0b53
Compare
a632676 to
19140ca
Compare
3e828d6 to
a3fd320
Compare
19140ca to
a5256b9
Compare
a3fd320 to
d65a340
Compare
a5256b9 to
ddb4e55
Compare
d65a340 to
46aa72b
Compare
3c5e8c4 to
b83a336
Compare
d2cd64b to
4af556a
Compare
b83a336 to
6c93fcf
Compare
4af556a to
fedb3ee
Compare
6c93fcf to
e40e7ef
Compare
fedb3ee to
fa60765
Compare
e40e7ef to
6424f60
Compare
fa60765 to
8285953
Compare
6424f60 to
04a0d76
Compare
8285953 to
4c67ca7
Compare
04a0d76 to
e9f6790
Compare
YJDH-791. Django admin site can be used to list and view organisations and their data. No additions, changes or deletions are allowed via admin site. NOTE: Registering companies to admin site makes it possible to use company as a search field in other admin views.
YJDH-791 YJDH-792. Register `EmployerApplication` and `EmployerSummerVoucher` with multiple filters and search fields to Django's admin site. A `EmployerApplication` can only be updated from it's employment details and employee info parts, it cannot be deleted and a new one cannot be created via admin site.
YJDH-791. Change verbose names for employer application and employer summer voucher, because without context it was unclear what voucher or application was meant. This was especially frustrating when using admin site, where the models are listed in left side panel.
4c67ca7 to
e456f1d
Compare
|
YJDH-KESASETELI-API branch is deployed to platta: https://yjdh-kesaseteli-pr3840.api.dev.hel.ninja 🚀🚀🚀 |
|
|
YOUTH branch is deployed to platta: https://nuortenkesaseteli-pr3840.dev.hel.ninja 🚀🚀🚀 |
|
EMPLOYER branch is deployed to platta: https://kesaseteli-pr3840.dev.hel.ninja 🚀🚀🚀 |
|
HANDLER branch is deployed to platta: https://kesaseteli-handler-ui-pr3840.dev.hel.ninja 🚀🚀🚀 |
TestCafe result is success for https://nuortenkesaseteli-pr3840.dev.hel.ninja 😆🎉🎉🎉 |
TestCafe result is success for https://kesaseteli-handler-ui-pr3840.dev.hel.ninja 😆🎉🎉🎉 |
TestCafe result is success for https://kesaseteli-pr3840.dev.hel.ninja 😆🎉🎉🎉 |



YJDH-791 YJDH-792.
Register
Organisation,EmployerApplicationandEmployerSummerVoucherwith multiple filters and search fields to Django's admin site.A
EmployerApplicationcan only be updated from it's employment details and employee info parts, it cannot be deleted and a new one cannot be created via admin site.Applications:
Summer vouchers: