Commit graph

70 commits

Author SHA1 Message Date
Pēteris Caune
410b56baef
Fix type hints for django-stubs 5.0.1 2024-05-27 14:35:32 +03:00
Pēteris Caune
fa9db53631
Update admin to use format_html instead of string interpolation 2023-10-06 13:54:15 +03:00
Pēteris Caune
f68b2c01a6
Simplify the counting of updated objects in admin actions 2023-10-06 11:35:32 +03:00
Pēteris Caune
7b1258ceaa
Improve type hints in accounts admin, fix HTML escaping issue
In Project admin, when listing project members, for single-member
projects the owner's email address was being displayed
unescaped. This allowed unescaped amperstand and quote characters
to appear in HTML output.
2023-10-05 16:04:21 +03:00
Pēteris Caune
d5573fbc63
Enable sorting for date columns in Profile admin 2023-07-24 11:33:59 +03:00
Pēteris Caune
f6a04d2256
Fix lint issues 2023-07-12 10:07:14 +03:00
Pēteris Caune
5b322e5c5e
Optimize queries in admin 2023-07-11 16:45:02 +03:00
Pēteris Caune
88016c4317
Add over_limit_date in Profile admin's list view 2023-07-11 12:36:41 +03:00
Pēteris Caune
e26830ea99
Tweak Profile admin's list view 2023-07-11 12:28:58 +03:00
Pēteris Caune
32b607533a
Make QoL improvements in admin
* Add "view on site" links in Check, Channel, and Project admins
* Expose over_limit_date in Profile admin
* Display last notify duration ("Time" column) in Channel admin
* Add last notify duration filter for Channel admin
2023-07-11 12:14:45 +03:00
Pēteris Caune
4adba44381
Add convenience functions in Profile model
* is_past_over_limit_grace(): Returns True if this profile is
over limits for 31 or more days.
* schedule_for_deletion(): Sets the deletion_scheduled_date
field to 31 days in the future.
2023-07-11 10:14:10 +03:00
Pēteris Caune
c69c1f5ec4
Add management command for sending "scheduled for deletion" warnings 2023-07-04 12:50:50 +03:00
Pēteris Caune
c3b80b06cf
Add Profile.deletion_scheduled_deleted field and UI banner when it's set 2023-04-28 15:03:04 +03:00
Pēteris Caune
5f2b795a88
Add "Activate" and "Deactivate" actions in User admin 2023-04-28 14:26:19 +03:00
Pēteris Caune
50d15d53e5
Add a "Remove TOTP" action in Profile admin 2023-03-28 17:36:57 +03:00
Pēteris Caune
ff7b963d15
Move "send report", "deactivate" admin actions to the Profile admin 2022-12-01 09:35:13 +02:00
Pēteris Caune
161430fb10
Sort imports and add "from __future__ import annotations" 2022-10-17 16:52:15 +03:00
Pēteris Caune
5969e940a5
Switch to using "from __future__ import annotations" 2022-10-17 16:29:48 +03:00
Pēteris Caune
a7038a9ec4
Fix remaining mypy errors and add mypy to CI 2022-10-07 12:21:45 +03:00
Pēteris Caune
1b6269b29f
Improve Credential admin 2022-06-22 10:21:14 +03:00
Pēteris Caune
620fda5589
Tweak User and Profile admin
- change the "By check count" filter in Profile admin
- add "Last active" column in user list view
2022-03-13 17:04:00 +02:00
Pēteris Caune
56a6fe2381
Add "deactivate" action in user admin 2022-03-09 17:12:16 +02:00
Pēteris Caune
e46000ecdf
Add admin action to log in as any user 2021-07-20 11:16:12 +03:00
Pēteris Caune
8a154cbaf5
Expose Credentials model in Django admin
This is to help troubleshoot 2FA issues without
running manual SQL queries.
2021-06-29 10:46:08 +03:00
Pēteris Caune
6c10980889
Add Account Settings > Appearance page 2021-06-18 13:51:07 +03:00
Pēteris Caune
df44ee58c0
Add an option for weekly reports (in addition to monthly) 2021-05-24 13:44:34 +03:00
Pēteris Caune
03a538c5e2
Add Profile.reports field
This is in preparation of adding an option for weekly
reports (#407)
2021-05-24 11:20:28 +03:00
Pēteris Caune
c75a37570e
In channels admin, don't show the notification counts, querying it is too expensive. 2020-08-18 13:30:24 +03:00
Pēteris Caune
8c13457037
Use separate counters for SMS and phone calls. 2020-08-03 17:52:09 +03:00
Pēteris Caune
f814035f03
Declutter /admin/accounts/profile/ 2020-07-16 16:31:57 +03:00
Pēteris Caune
e89229a2ca
In admin, visualize account's number of checks 2020-07-06 18:39:27 +03:00
Pēteris Caune
e04a92ccf1
Profiles admin: filtering by number of checks, show check count by project. 2020-04-20 19:11:15 +03:00
Pēteris Caune
abdff95ce8
Admin tweaks. 2020-04-20 13:33:21 +03:00
Pēteris Caune
0c9c453ea0
Profile.current_project not used any more, remove last remaining references. cc: #336 2020-02-27 12:34:21 +02:00
Pēteris Caune
93507fcc47
Cleanup in report-body-html.html.
Add a "Send Nag" admin command for easier testing.
2019-09-03 09:24:56 +03:00
Pēteris Caune
cdfc9840a7
Source formatted with Black 2019-05-15 14:27:50 +03:00
Pēteris Caune
945a66ab0a
Management command for sending inactive account notifications 2019-03-13 00:38:34 +02:00
Pēteris Caune
c60a33874f
Quicker admin. 2019-02-04 20:11:45 +02:00
Pēteris Caune
886643db84
Prefetch projects in profile admin. 2019-02-01 14:33:02 +02:00
Pēteris Caune
6b0d566922
"My Projects" page. 2019-01-29 10:59:10 +02:00
Pēteris Caune
4e6fa38ec6
Users can create and remove Projects -- WIP 2019-01-28 20:09:23 +02:00
Pēteris Caune
6d7942d7f9
Admin improvements. 2019-01-28 13:05:40 +02:00
Pēteris Caune
229e2a3922
Admin improvements. 2019-01-22 18:18:11 +02:00
Pēteris Caune
3c1964b493
Prepare for the removal of Member.team_id 2019-01-21 21:35:32 +02:00
Pēteris Caune
664aad916a
Remove Profile.team_name (use Project.name instead) and Profile.current_team (use Profile.current_project instead) 2019-01-19 17:56:16 +02:00
Pēteris Caune
e1b999e83a
Prepare for the removal of Check.user_id 2019-01-18 14:59:01 +02:00
Pēteris Caune
654516412e
Don't show Profile.api_key in admin. 2019-01-17 16:34:31 +02:00
Pēteris Caune
1c69cf7f89
Project model. cc: #183 2019-01-12 16:40:21 +02:00
Pēteris Caune
e76329a364
Admin tweaks 2018-12-24 19:50:09 +02:00
Pēteris Caune
5ef67e8bbf
Remove Profile.bill_to field. 2018-11-06 10:19:59 +02:00