Commit Graph

43 Commits

Author SHA1 Message Date
Christopher C. Wells 694bb3f811 Use django-dbsettings package for site settings 2023-04-15 13:59:44 -07:00
Christopher C. Wells 613f53a4da Add mechanism for site wide settings
The two settings properties introduced here are not yet used.
2023-03-25 13:24:56 -07:00
Christopher Charbonneau Wells 996d81966c
Indicate user locked state and allow unlocking from users admin (#600)
* Use custom template for account lock

* Rename Baby Buddy base template tags

* Add user unlock view

* Add user unlock test
2023-02-11 09:02:23 -08:00
Christopher C. Wells cd44a473cf Replace references to Django core `User` model with `get_user_model` 2023-02-10 06:14:37 -08:00
Paul Konstantin Gerke 6080058635 Refactor handle_api_key_post, fix type annotation 2022-10-20 10:53:10 +02:00
Paul Konstantin Gerke 901bb99bd7 Fix copy-pasta mistake redirecting to the wrong page 2022-10-19 21:30:21 +02:00
Paul Konstantin Gerke 8b617b0bff Black 2022-10-17 09:48:26 +02:00
Paul Konstantin Gerke 0f4c006c05 Add new "Add a device" view, remove QR-code from settings-view 2022-10-17 09:40:06 +02:00
Paul Konstantin Gerke 7424155ba4 Remove unused imports 2022-08-30 21:34:04 +02:00
Paul Konstantin Gerke be4f987d35 Remove qrcode library and replace with django-qre-code
Required some rework to make qr-codes work via a template machanism. I think
that the new solution is working neatly as well.
2022-08-30 21:26:45 +02:00
Paul Konstantin Gerke e238563b53 Replace qrcode generator with template tag 2022-08-25 23:56:18 +02:00
Paul Konstantin Gerke d5bbbd4ee4 Add login QR-code to settings-page 2022-08-24 22:20:08 +02:00
Christopher C. Wells 11d487b740 Remove debugging code 2022-02-25 20:28:12 -08:00
Christopher C. Wells 5fc7306315 Fix variable spelling 2022-02-25 20:28:12 -08:00
Christopher C. Wells 94d1f99344 Create base error template 2022-02-25 20:28:12 -08:00
Christopher C. Wells b1ee9fe043 Add template for 403 CSRF Bad Origin failure 2022-02-25 20:28:12 -08:00
Christopher C. Wells cd946280cb Format code with black 2022-02-09 16:00:30 -08:00
Christopher C. Wells 226f67f02c Update Django to 4.x 2022-01-16 15:49:09 -08:00
Christopher C. Wells 97fa8d7000 Support POST only for logout 2021-12-18 17:42:53 -05:00
Christopher C. Wells 0250faec6e Ensure "settings saved" is translated (#346) 2021-11-28 14:05:56 -05:00
Christopher C. Wells 0efe0e4f0b Remove deprecated use of session-based language handling
Session-based language handling is deprecated in Django 3.x and will be
removed in 4.x.

https://docs.djangoproject.com/en/3.2/topics/i18n/translation/#explicitly-setting-the-active-language
2021-10-26 19:55:16 -07:00
Christopher C. Wells 0e6a5cb08a Prevent caching of pages requiring authentication 2021-09-16 19:34:33 -07:00
Ohad Lutzky e2779c006f Hide child column if only one child is shown
Fixes #233
2021-08-04 08:47:56 -07:00
Christopher C. Wells 1689bc8e20 Refactor API key reset as part of settings form
This adds core CSRF protection to the reset functionality.
2021-06-21 21:27:45 -07:00
Christopher C. Wells c05ce176fc Persist user timezone setting with middleware 2020-02-14 12:45:24 -08:00
Christopher C. Wells 1514e77f8c Add user configurable timezone setting 2020-02-14 10:56:13 -08:00
Christopher C. Wells d68410cdae Use cookie for language setting
Django 4.0 will deprecate the use of session for language setting.
2020-01-04 08:09:28 -08:00
Christopher C. Wells ee82286da5 Add translatable strings support to formatted strings (WIP). 2019-04-14 14:42:58 -07:00
Christopher C. Wells c36451fc8e Add translateable strings support in babybuddy app. 2019-04-13 21:55:16 -07:00
Christopher C. Wells 0e4d80dab0 Add cookie-based language selection to user settings.
This will likely be refactored to use a database column instead of dropping a cookie.
2019-04-13 20:07:46 -07:00
Christopher Charbonneau Wells 4b7bb69218 Add support for Django 2.1 and Django Filters 2.0.0. 2018-08-04 13:00:51 -07:00
Christopher Charbonneau Wells 08488af718 Raise permission denied instead of redirecting to login (#49). 2018-05-20 14:40:09 -07:00
Christopher Charbonneau Wells ab2717ed56 Do not deal with child count during root redirect. 2018-05-20 14:39:28 -07:00
Christopher Charbonneau Wells 5dc372281b Remove all unicode_literals imports. 2018-02-17 17:09:40 -05:00
Christopher Charbonneau Wells 183a30b0a3 Only allow staff members to manage users. 2017-12-13 13:49:10 -05:00
Christopher Charbonneau Wells b34cc6aee8 Add ordering to users list to prevent a warning from Django. 2017-12-11 17:27:29 -05:00
Christopher Charbonneau Wells e234c1cfd2 Add basic user management forms and views. 2017-12-10 21:36:25 -05:00
Christopher Charbonneau Wells 705d008679 Add status messages for babybuddy app views. 2017-12-06 13:03:26 -05:00
Christopher Charbonneau Wells a9c0757b4d Add per-user token-based API authentication. 2017-12-05 10:46:59 -05:00
Christopher Charbonneau Wells e92d3f361e Misc. Django 2.0 update changes. 2017-12-03 16:52:27 -05:00
Christopher Charbonneau Wells 0c57e21c02 Add a user password change form. 2017-12-02 16:20:15 -05:00
Christopher Charbonneau Wells 60ac9a7f5d Add Settings model extending User. 2017-11-12 12:09:54 -05:00
Christopher Charbonneau Wells 00d3cf65f5 Add a basic Welcome page. 2017-11-09 14:37:06 -05:00